Added cache_prefix function for cache system
This commit is contained in:
parent
3d78470e1d
commit
a84b1488ea
@ -54,3 +54,14 @@ if (!function_exists('show_widget')) {
|
|||||||
return Widgets::show($model, ...$arguments);
|
return Widgets::show($model, ...$arguments);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (!function_exists('cache_prefix')) {
|
||||||
|
/**
|
||||||
|
* Cache system added company_id prefix.
|
||||||
|
*
|
||||||
|
* @return string
|
||||||
|
*/
|
||||||
|
function cache_prefix() {
|
||||||
|
return session('company_id') . '_';
|
||||||
|
}
|
||||||
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user