Skip to content

Commit d48153b

Browse files
Fixed an issue with cache memory multi_get
Fail silently if object not found in cache, will be loaded later.
1 parent d5d1135 commit d48153b

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

lib/Skeleton/Object/Cache/Handler/Memory.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,9 @@ public static function get($key) {
8888
public static function multi_get($keys) {
8989
$result = [];
9090
foreach ($keys as $key) {
91-
$result[] = self::get($key);
91+
try {
92+
$result[] = self::get($key);
93+
} catch (\Exception $e) {}
9294
}
9395
return $result;
9496
}

0 commit comments

Comments
 (0)