From 09598e67b3e7c6100e1148153f1d43401bea547b Mon Sep 17 00:00:00 2001 From: thinkphp Date: Sun, 18 Sep 2016 12:43:10 +0800 Subject: [PATCH] =?UTF-8?q?cache=E5=8A=A9=E6=89=8B=E5=87=BD=E6=95=B0?= =?UTF-8?q?=E6=94=AF=E6=8C=81=E5=88=A4=E6=96=AD=E7=BC=93=E5=AD=98=E6=98=AF?= =?UTF-8?q?=E5=90=A6=E6=9C=89=E6=95=88?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- helper.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/helper.php b/helper.php index b9590d60..11f0b76c 100644 --- a/helper.php +++ b/helper.php @@ -361,7 +361,7 @@ if (!function_exists('cache')) { } if ('' === $value) { // 获取缓存 - return Cache::get($name); + return 0 === strpos($name, '?') ? Cache::has(substr($name, 1)) : Cache::get($name); } elseif (is_null($value)) { // 删除缓存 return Cache::rm($name);