mirror of
https://github.com/crmeb/CRMEB.git
synced 2025-12-12 19:12:49 +00:00
调整删除缓存方法
This commit is contained in:
parent
3f6ef14020
commit
6c08fee309
@ -85,6 +85,6 @@ class CacheService
|
|||||||
*/
|
*/
|
||||||
public static function clear()
|
public static function clear()
|
||||||
{
|
{
|
||||||
return CacheStatic::clear(self::$globalCacheName);
|
return self::handler()->clear();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -25,10 +25,9 @@ class SystemConfigService
|
|||||||
*/
|
*/
|
||||||
protected static function init()
|
protected static function init()
|
||||||
{
|
{
|
||||||
if(!(self::$configList = CacheService::get(self::CACHE_SYSTEM))){
|
self::$configList = CacheService::get(self::CACHE_SYSTEM, function () {
|
||||||
self::$configList = self::getAll();
|
return self::getAll();
|
||||||
CacheService::set('system_config',self::$configList);
|
});
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**获取系统配置
|
/**获取系统配置
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user