eZ/Publish/Core/Persistence/Cache/AbstractHandler.php 1 location
|
@@ 86-94 (lines=9) @@
|
| 83 |
|
// Load cache items by cache keys (will contain hits and misses) |
| 84 |
|
$list = []; |
| 85 |
|
$cacheMisses = []; |
| 86 |
|
foreach ($this->cache->getItems($cacheKeys) as $key => $cacheItem) { |
| 87 |
|
$id = $cacheKeysToIdMap[$key]; |
| 88 |
|
if ($cacheItem->isHit()) { |
| 89 |
|
$list[$id] = $cacheItem->get(); |
| 90 |
|
} else { |
| 91 |
|
$cacheMisses[] = $id; |
| 92 |
|
$list[$id] = $cacheItem; |
| 93 |
|
} |
| 94 |
|
} |
| 95 |
|
|
| 96 |
|
// No misses, return completely cached list |
| 97 |
|
if (empty($cacheMisses)) { |
eZ/Publish/Core/Persistence/Cache/AbstractTrait.php 1 location
|
@@ 68-76 (lines=9) @@
|
| 65 |
|
// Load cache items by cache keys (will contain hits and misses) |
| 66 |
|
$list = []; |
| 67 |
|
$cacheMisses = []; |
| 68 |
|
foreach ($this->cache->getItems($cacheKeys) as $key => $cacheItem) { |
| 69 |
|
$id = $cacheKeysToIdMap[$key]; |
| 70 |
|
if ($cacheItem->isHit()) { |
| 71 |
|
$list[$id] = $cacheItem->get(); |
| 72 |
|
} else { |
| 73 |
|
$cacheMisses[] = $id; |
| 74 |
|
$list[$id] = $cacheItem; |
| 75 |
|
} |
| 76 |
|
} |
| 77 |
|
|
| 78 |
|
// No misses, return completely cached list |
| 79 |
|
if (empty($cacheMisses)) { |