Showing
1 changed file
with
4 additions
and
2 deletions
@@ -27,7 +27,9 @@ class Quick extends Connection | @@ -27,7 +27,9 @@ class Quick extends Connection | ||
27 | if ($this->_cacheStatus === true) { | 27 | if ($this->_cacheStatus === true) { |
28 | if (!empty($this->_cacheTagName) && !empty($this->_cacheKey)) { | 28 | if (!empty($this->_cacheTagName) && !empty($this->_cacheKey)) { |
29 | $this->dbCache()->tag($this->_cacheTagName)->delete($this->_cacheKey); | 29 | $this->dbCache()->tag($this->_cacheTagName)->delete($this->_cacheKey); |
30 | - } else { | 30 | + } elseif (!empty($this->_cacheTagName)) { |
31 | + $this->dbCache()->delete($this->_cacheTagName); | ||
32 | + } elseif (!empty($this->_cacheKey)) { | ||
31 | $this->dbCache()->delete($this->_cacheKey); | 33 | $this->dbCache()->delete($this->_cacheKey); |
32 | } | 34 | } |
33 | $this->_resetParameter(); | 35 | $this->_resetParameter(); |
@@ -220,7 +222,7 @@ class Quick extends Connection | @@ -220,7 +222,7 @@ class Quick extends Connection | ||
220 | 222 | ||
221 | /** | 223 | /** |
222 | * db cache 对象 | 224 | * db cache 对象 |
223 | - * @return /Hood\Cache\CacheInterface | 225 | + * @return \Hood\Cache\CacheInterface |
224 | */ | 226 | */ |
225 | private function dbCache() | 227 | private function dbCache() |
226 | { | 228 | { |
-
Please register or login to post a comment