From d6eec5d56867237a2855590f241ff5868f4888e2 Mon Sep 17 00:00:00 2001 From: thinkphp Date: Mon, 29 Aug 2016 18:16:40 +0800 Subject: [PATCH] =?UTF-8?q?=E6=94=B9=E8=BF=9BCache=E7=B1=BB=E7=9A=84connec?= =?UTF-8?q?t=E6=96=B9=E6=B3=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- library/think/Cache.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/library/think/Cache.php b/library/think/Cache.php index 9f7a569d..ecfd2cf3 100644 --- a/library/think/Cache.php +++ b/library/think/Cache.php @@ -37,7 +37,7 @@ class Cache { $type = !empty($options['type']) ? $options['type'] : 'File'; if (false === $name) { - $name = $type; + $name = md5(serialize($options)); } if (true === $name || !isset(self::$instance[$name])) {