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