[Cache] fix expiration handling in ArrayAdapter

This commit is contained in:
Christian Flothmann 2016-04-24 15:07:58 +02:00
parent db208e3e25
commit 8b0d990a0c

View File

@ -137,6 +137,8 @@ class ArrayAdapter implements AdapterInterface, LoggerAwareInterface
$expiry = $item[CacheItem::CAST_PREFIX.'expiry'];
if (null !== $expiry && $expiry <= time()) {
$this->deleteItem($key);
return true;
}
if ($this->storeSerialized) {