diff --git a/library/think/db/Query.php b/library/think/db/Query.php index 829e66d5..cf65e4c3 100644 --- a/library/think/db/Query.php +++ b/library/think/db/Query.php @@ -2355,7 +2355,7 @@ class Query } } - if (isset($cache) && $resultSet) { + if (isset($cache) && false !== $resultSet) { // 缓存数据集 $this->cacheData($key, $resultSet, $cache); }