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:
commit
84b48de299
@ -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