调整删除缓存方法

This commit is contained in:
liaofei 2019-12-12 09:29:10 +08:00
parent 3f6ef14020
commit 6c08fee309
2 changed files with 4 additions and 5 deletions

View File

@ -85,6 +85,6 @@ class CacheService
*/ */
public static function clear() public static function clear()
{ {
return CacheStatic::clear(self::$globalCacheName); return self::handler()->clear();
} }
} }

View File

@ -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); });
}
} }
/**获取系统配置 /**获取系统配置