改进value方法的缓存处理

This commit is contained in:
thinkphp
2018-08-08 13:49:02 +08:00
parent 31635b3b4e
commit 5145f28343

View File

@@ -441,7 +441,7 @@ class Query
$result += 0; $result += 0;
} }
if (isset($cache)) { if (isset($cache) && false !== $result) {
// 缓存数据 // 缓存数据
$this->cacheData($key, $result, $cache); $this->cacheData($key, $result, $cache);
} }