mirror of
https://gitee.com/fastadminnet/framework.git
synced 2026-07-07 07:12:47 +08:00
改进
This commit is contained in:
@@ -81,8 +81,8 @@ class Cache
|
||||
$default = Config::get('cache.default');
|
||||
// 获取默认缓存配置,并连接
|
||||
$options = Config::get('cache.' . $default['type']) ?: Config::get('cache.default');
|
||||
} else {
|
||||
$options = !empty($options) ? $options : Config::get('cache');
|
||||
} elseif (empty($options)) {
|
||||
$options = Config::get('cache');
|
||||
}
|
||||
|
||||
self::$handler = self::connect($options);
|
||||
|
||||
Reference in New Issue
Block a user