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.
2 parents d8338dc + 85da081 commit ba4d57bCopy full SHA for ba4d57b
src/Symfony/Component/Cache/Adapter/ArrayAdapter.php
@@ -205,7 +205,7 @@ public function save(CacheItemInterface $item)
205
return false;
206
}
207
if (null === $expiry && 0 < $this->defaultLifetime) {
208
- $expiry = microtime(true) + $this->defaultLifetime;
+ $expiry = $this->defaultLifetime;
209
$expiry = $now + ($expiry > ($this->maxLifetime ?: $expiry) ? $this->maxLifetime : $expiry);
210
} elseif ($this->maxLifetime && (null === $expiry || $expiry > $now + $this->maxLifetime)) {
211
$expiry = $now + $this->maxLifetime;
0 commit comments