Skip to content

Commit e3d137f

Browse files
committed
ACP2E-3063: [Cloud] Cache is not getting invalidated.
- with test
1 parent 69e0962 commit e3d137f

File tree

3 files changed

+10
-7
lines changed

3 files changed

+10
-7
lines changed

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

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,8 +36,9 @@ public function getTags($object)
3636
if ($this->isExistingCategoryLayoutChange($object)) {
3737
return [
3838
sprintf(
39-
'%s',
40-
str_replace('{{ID}}', $object->getId(), Instance::SINGLE_CATEGORY_LAYOUT_HANDLE))
39+
'%s',
40+
str_replace('{{ID}}', $object->getId(), Instance::SINGLE_CATEGORY_LAYOUT_HANDLE)
41+
)
4142
];
4243
}
4344
return [];

app/code/Magento/Catalog/Model/Product/LayoutCacheTagResolver.php

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,8 +36,9 @@ public function getTags($object)
3636
if ($this->isExistingProductLayoutChange($object)) {
3737
return [
3838
sprintf(
39-
'%s',
40-
str_replace('{{ID}}', $object->getId(), Instance::SINGLE_PRODUCT_LAYOUT_HANDLE))
39+
'%s',
40+
str_replace('{{ID}}', $object->getId(), Instance::SINGLE_PRODUCT_LAYOUT_HANDLE)
41+
)
4142
];
4243
}
4344
return [];

app/code/Magento/Cms/Model/Page/LayoutCacheTagResolver.php

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -35,9 +35,10 @@ public function getTags($object)
3535
if ($this->isExistingPageLayoutChange($object)) {
3636
return [
3737
sprintf(
38-
'%s_%s',
39-
'CMS_PAGE_VIEW_ID',
40-
str_replace('-', '_', strtoupper($object->getIdentifier())))
38+
'%s_%s',
39+
'CMS_PAGE_VIEW_ID',
40+
str_replace('-', '_', strtoupper($object->getIdentifier()))
41+
)
4142
];
4243
}
4344
return [];

0 commit comments

Comments
 (0)