bug #18629 [Cache] fix expiration handling in ArrayAdapter (xabbuh)

This PR was merged into the 3.1-dev branch.

Discussion
----------

[Cache] fix expiration handling in ArrayAdapter

| Q             | A
| ------------- | ---
| Branch?       | master
| Bug fix?      | yes
| New feature?  | no
| BC breaks?    | no
| Deprecations? | no
| Tests pass?   | yes
| Fixed tickets |
| License       | MIT
| Doc PR        |

Commits
-------

8b0d990 [Cache] fix expiration handling in ArrayAdapter
This commit is contained in:
Nicolas Grekas 2016-04-25 08:05:55 +02:00
commit 84b48de299

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) {