Skip to content

Commit 6957869

Browse files
authored
Do not increase value if path is null (#127)
1 parent 4f72850 commit 6957869

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

PredisCachePool.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,9 @@ protected function clearAllObjectsFromCache()
6363
protected function clearOneObjectFromCache($key)
6464
{
6565
$keyString = $this->getHierarchyKey($key, $path);
66-
$this->cache->incr($path);
66+
if ($path) {
67+
$this->cache->incr($path);
68+
}
6769
$this->clearHierarchyKeyCache();
6870

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

0 commit comments

Comments
 (0)