This commit is contained in:
thinkphp
2017-12-06 16:54:12 +08:00
parent cc81f12735
commit 9896df3b59

View File

@@ -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);