Skip to content

Commit bab3056

Browse files
authored
Fixed arrayCachePool hierarchy issue (#136)
1 parent 77295fc commit bab3056

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

ArrayCachePool.php

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -80,11 +80,12 @@ protected function getItemWithoutGenerateCacheKey($key)
8080
*/
8181
protected function fetchObjectFromCache($key)
8282
{
83-
if (!isset($this->cache[$key])) {
83+
$keyString = $this->getHierarchyKey($key);
84+
if (!isset($this->cache[$keyString])) {
8485
return [false, null, [], null];
8586
}
8687

87-
list($data, $tags, $timestamp) = $this->cache[$key];
88+
list($data, $tags, $timestamp) = $this->cache[$keyString];
8889

8990
if (is_object($data)) {
9091
$data = clone $data;

0 commit comments

Comments
 (0)