Skip to content

Commit 3b17822

Browse files
committed
MAGETWO-73625: Products change in one category will cause cache miss for other categories (Only reproducible by unassigning products from backend category page)
1 parent 485ad0b commit 3b17822

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

app/code/Magento/CacheInvalidate/Model/PurgeCache.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ private function splitTags(string $tagsPattern) : \Generator
9494
$formattedTags = explode('|', $tagsPattern);
9595
foreach ($formattedTags as $formattedTag) {
9696
if ($tagsBatchSize + strlen($formattedTag) > $this->requestSize - count($formattedTagsChunk) - 1) {
97-
yield implode('|', array_unique($formattedTagsChunk));
97+
yield implode('|', $formattedTagsChunk);
9898
$formattedTagsChunk = [];
9999
$tagsBatchSize = 0;
100100
}
@@ -103,7 +103,7 @@ private function splitTags(string $tagsPattern) : \Generator
103103
$formattedTagsChunk[] = $formattedTag;
104104
}
105105
if (!empty($formattedTagsChunk)) {
106-
yield implode('|', array_unique($formattedTagsChunk));
106+
yield implode('|', $formattedTagsChunk);
107107
}
108108
}
109109

0 commit comments

Comments
 (0)