Skip to content

Commit 7a1a14f

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

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ public function getTags($object)
3737
return [
3838
sprintf(
3939
'%s',
40-
str_replace('{{ID}}', $object->getId(), Instance::SINGLE_CATEGORY_LAYOUT_HANDLE)
40+
str_replace('{{ID}}', (string) $object->getId(), Instance::SINGLE_CATEGORY_LAYOUT_HANDLE)
4141
)
4242
];
4343
}

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ public function getTags($object)
3737
return [
3838
sprintf(
3939
'%s',
40-
str_replace('{{ID}}', $object->getId(), Instance::SINGLE_PRODUCT_LAYOUT_HANDLE)
40+
str_replace('{{ID}}', (string) $object->getId(), Instance::SINGLE_PRODUCT_LAYOUT_HANDLE)
4141
)
4242
];
4343
}

0 commit comments

Comments
 (0)