mirror of
https://gitee.com/fastadminnet/framework.git
synced 2026-07-05 22:52:49 +08:00
改进
This commit is contained in:
@@ -80,7 +80,7 @@ class Cache
|
|||||||
if (empty($options) && 'complex' == Config::get('cache.type')) {
|
if (empty($options) && 'complex' == Config::get('cache.type')) {
|
||||||
$default = Config::get('cache.default');
|
$default = Config::get('cache.default');
|
||||||
// 获取默认缓存配置,并连接
|
// 获取默认缓存配置,并连接
|
||||||
$options = Config::get('cache.' . $default['type']) ?: Config::get('cache.default');
|
$options = Config::get('cache.' . $default['type']) ?: $default;
|
||||||
} elseif (empty($options)) {
|
} elseif (empty($options)) {
|
||||||
$options = Config::get('cache');
|
$options = Config::get('cache');
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user