Skip to content

Commit 8f504f5

Browse files
committed
ACP2E-3063: [Cloud] Cache is not getting invalidated.
- without test
1 parent 3ed8963 commit 8f504f5

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

app/code/Magento/Cms/Observer/InvalidateLayoutCacheObserver.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -75,11 +75,11 @@ public function execute(Observer $observer)
7575
return;
7676
}
7777

78-
if (!$object->dataHasChangedFor(Page::PAGE_LAYOUT)) {
78+
if (!$this->cacheState->isEnabled(LayoutCache::TYPE_IDENTIFIER)) {
7979
return;
8080
}
81-
82-
if (!$this->cacheState->isEnabled(LayoutCache::TYPE_IDENTIFIER)) {
81+
82+
if (!$object->dataHasChangedFor(Page::PAGE_LAYOUT)) {
8383
return;
8484
}
8585

0 commit comments

Comments
 (0)