8000 Merge branch '5.1' · symfony/symfony@ba4d57b · GitHub
[go: up one dir, main page]

Skip to content
Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit ba4d57b

Browse files
Merge branch '5.1'
* 5.1: [Cache] fix merge
2 parents d8338dc + 85da081 commit ba4d57b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Symfony/Component/Cache/Adapter/ArrayAdapter.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -205,7 +205,7 @@ public function save(CacheItemInterface $item)
205205
return false;
206206
}
207207
if (null === $expiry && 0 < $this->defaultLifetime) {
208-
$expiry = microtime(true) + $this->defaultLifetime;
208+
$expiry = $this->defaultLifetime;
209209
$expiry = $now + ($expiry > ($this->maxLifetime ?: $expiry) ? $this->maxLifetime : $expiry);
210210
} elseif ($this->maxLifetime && (null === $expiry || $expiry > $now + $this->maxLifetime)) {
211211
$expiry = $now + $this->maxLifetime;

0 commit comments

Comments
 (0)
0