Skip to content

Commit e5f94fa

Browse files
authored
Do not increase value if path is null (#127)
1 parent 7679676 commit e5f94fa

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

RedisCachePool.php

+3-1
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,9 @@ protected function clearAllObjectsFromCache()
6262
protected function clearOneObjectFromCache($key)
6363
{
6464
$keyString = $this->getHierarchyKey($key, $path);
65-
$this->cache->incr($path);
65+
if ($path) {
66+
$this->cache->incr($path);
67+
}
6668
$this->clearHierarchyKeyCache();
6769

6870
return $this->cache->del($keyString) >= 0;

0 commit comments

Comments
 (0)