Skip to content

Commit

Permalink
[Cache] fix expiration handling in ArrayAdapter
Browse files Browse the repository at this point in the history
  • Loading branch information
xabbuh committed Apr 24, 2016
1 parent db208e3 commit 8b0d990
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/Symfony/Component/Cache/Adapter/ArrayAdapter.php
Expand Up @@ -137,6 +137,8 @@ public function save(CacheItemInterface $item)
$expiry = $item[CacheItem::CAST_PREFIX.'expiry'];

if (null !== $expiry && $expiry <= time()) {
$this->deleteItem($key);

return true;
}
if ($this->storeSerialized) {
Expand Down

0 comments on commit 8b0d990

Please sign in to comment.