From 5145f28343332776f2c215b7be6b844790e2ffdf Mon Sep 17 00:00:00 2001 From: thinkphp Date: Wed, 8 Aug 2018 13:49:02 +0800 Subject: [PATCH] =?UTF-8?q?=E6=94=B9=E8=BF=9Bvalue=E6=96=B9=E6=B3=95?= =?UTF-8?q?=E7=9A=84=E7=BC=93=E5=AD=98=E5=A4=84=E7=90=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- library/think/db/Query.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/library/think/db/Query.php b/library/think/db/Query.php index 1f3ddc29..b63c38e5 100644 --- a/library/think/db/Query.php +++ b/library/think/db/Query.php @@ -441,7 +441,7 @@ class Query $result += 0; } - if (isset($cache)) { + if (isset($cache) && false !== $result) { // 缓存数据 $this->cacheData($key, $result, $cache); }