Skip to content

Commit c4c463c

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

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

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

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1138,6 +1138,9 @@ public function getIdentities()
11381138
) {
11391139
$identities[] = Product::CACHE_PRODUCT_CATEGORY_TAG . '_' . $this->getId();
11401140
}
1141+
if ($this->isObjectNew()) {
1142+
$identities[] = self::CACHE_TAG;
1143+
}
11411144

11421145
return $identities;
11431146
}

0 commit comments

Comments
 (0)