Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 82e3ab9

Browse files
committed
review fix
1 parent da8dfb9 commit 82e3ab9

File tree

1 file changed

+1
-7
lines changed

1 file changed

+1
-7
lines changed

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

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -344,16 +344,10 @@ private function getTagVersions(array $tagsByKey, array &$invalidatedTags = arra
344344
$tags = array();
345345
foreach ($tagVersions as $tag => $version) {
346346
$tags[$tag.static::TAGS_PREFIX] = $tag;
347-
348-
if ($fetchTagVersions) {
349-
continue;
350-
}
351-
352-
if (!isset($this->knownTagVersions[$tag])) {
347+
if ($fetchTagVersions || !isset($this->knownTagVersions[$tag])) {
353348
$fetchTagVersions = true;
354349
continue;
355350
}
356-
357351
$version -= $this->knownTagVersions[$tag][1];
358352
if ((0 !== $version && 1 !== $version) || $this->knownTagVersionsTtl > $now - $this->knownTagVersions[$tag][0]) {
359353
// reuse previously fetched tag versions up to the ttl, unless we are storing items or a potential miss arises

0 commit comments

Comments
 (0)