[Cache] fix expiration handling in ArrayAdapter
This commit is contained in:
parent
db208e3e25
commit
8b0d990a0c
@ -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) {
|
||||
|
Reference in New Issue
Block a user