We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6486cbd commit 8e4cd48Copy full SHA for 8e4cd48
AbstractCachePool.php
@@ -180,6 +180,10 @@ public function save(CacheItemInterface $item)
180
if ($item instanceof HasExpirationDateInterface) {
181
if (null !== $expirationDate = $item->getExpirationDate()) {
182
$timeToLive = $expirationDate->getTimestamp() - time();
183
+
184
+ if ($timeToLive < 0) {
185
+ return $this->deleteItem($item->getKey());
186
+ }
187
}
188
189
composer.json
@@ -29,7 +29,7 @@
29
},
30
"require-dev": {
31
"phpunit/phpunit": "^4.0|^5.1",
32
- "cache/integration-tests": "^0.9"
+ "cache/integration-tests": "^0.10"
33
34
"autoload": {
35
"psr-4": {
0 commit comments