Skip to content

Commit db627ed

Browse files
author
Oleksandr Gorkun
committed
MAGETWO-71576: [Backport] - Cache invalidation after saving catalog - RIATCS-340 - for 2.1
1 parent c4c463c commit db627ed

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

app/code/Magento/Catalog/Model/Category.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1138,7 +1138,7 @@ public function getIdentities()
11381138
) {
11391139
$identities[] = Product::CACHE_PRODUCT_CATEGORY_TAG . '_' . $this->getId();
11401140
}
1141-
if ($this->isObjectNew()) {
1141+
if ($this->getId() && $this->isObjectNew()) {
11421142
$identities[] = self::CACHE_TAG;
11431143
}
11441144

0 commit comments

Comments
 (0)