From 2ef5da7b1bc01600575e4c31003125f5ee6826e6 Mon Sep 17 00:00:00 2001 From: thinkphp Date: Thu, 26 Jan 2017 09:56:21 +0800 Subject: [PATCH] =?UTF-8?q?Cache=E7=B1=BBstore=E6=96=B9=E6=B3=95=E5=8F=82?= =?UTF-8?q?=E6=95=B0=E5=85=81=E8=AE=B8=E4=B8=BA=E7=A9=BA=20=E8=A1=A8?= =?UTF-8?q?=E7=A4=BA=E8=8E=B7=E5=8F=96=E5=BD=93=E5=89=8D=E7=BC=93=E5=AD=98?= =?UTF-8?q?=E9=A9=B1=E5=8A=A8=E5=8F=A5=E6=9F=84?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- library/think/Cache.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/library/think/Cache.php b/library/think/Cache.php index 12107091..9e4b30ef 100644 --- a/library/think/Cache.php +++ b/library/think/Cache.php @@ -81,9 +81,9 @@ class Cache * @param string $name 缓存标识 * @return Driver */ - public static function store($name) + public static function store($name = '') { - if ('complex' == Config::get('cache.type')) { + if ('' !== $name && 'complex' == Config::get('cache.type')) { self::connect(Config::get('cache.' . $name), strtolower($name)); } return self::$handler;