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