diff --git a/src/CacheTrait.php b/src/CacheTrait.php index 402249784..217ce8e2c 100644 --- a/src/CacheTrait.php +++ b/src/CacheTrait.php @@ -37,7 +37,9 @@ private function getCachedValue($k) } $cacheItem = $this->cache->getItem($key); - return $cacheItem->get(); + if ($cacheItem->isHit()) { + return $cacheItem->get(); + } } /**