Authored by ziy

Fix:

1、修改数据库没有数据时不进行缓存
... ... @@ -65,7 +65,7 @@ class Quick extends PDOConnection
}
}
$cacheData = parent::$fun($sql, $parameterMap, $replaceMap);
if ($this->_cacheStatus === true) {
if ($this->_cacheStatus === true && !empty($cacheData)) {
if (!empty($this->_cacheTagName)) {
$this->dbCache()->tag($this->_cacheTagName)->set($this->_cacheKey, $cacheData, $this->_cacheExpire);
} else {
... ...