Added cache_prefix function for cache system

This commit is contained in:
Cüneyt Şentürk 2020-08-06 22:11:12 +03:00
parent 3d78470e1d
commit a84b1488ea

View File

@ -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') . '_';
}
}