We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 44a86cb commit 7d8c0c8Copy full SHA for 7d8c0c8
lib/internal/Magento/Framework/Cache/Backend/Redis.php
@@ -51,7 +51,10 @@ public function load($id, $doNotTestCacheValidity = false)
51
$redis->hGet(self::PREFIX_KEY . $key, self::FIELD_DATA);
52
}
53
54
- $this->preloadedData = array_filter(array_combine($this->preloadKeys, $redis->exec()));
+ $redisResponse = $redis->exec();
55
+ $this->preloadedData = $redisResponse ?
56
+ array_filter(array_combine($this->preloadKeys, $redisResponse)) :
57
+ [];
58
59
60
if (isset($this->preloadedData[$id])) {
0 commit comments