Skip to content

Commit 3c61af0

Browse files
authored
Do not increase value if path is null (#127)
1 parent fcb4f9b commit 3c61af0

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

MemcachedCachePool.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,9 @@ protected function clearOneObjectFromCache($key)
6767
{
6868
$this->commit();
6969
$key = $this->getHierarchyKey($key, $path);
70-
$this->cache->increment($path, 1, 0);
70+
if ($path) {
71+
$this->cache->increment($path, 1, 0);
72+
}
7173
$this->clearHierarchyKeyCache();
7274

7375
if ($this->cache->delete($key)) {

0 commit comments

Comments
 (0)