We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3ed8963 commit 8f504f5Copy full SHA for 8f504f5
app/code/Magento/Cms/Observer/InvalidateLayoutCacheObserver.php
@@ -75,11 +75,11 @@ public function execute(Observer $observer)
75
return;
76
}
77
78
- if (!$object->dataHasChangedFor(Page::PAGE_LAYOUT)) {
+ if (!$this->cacheState->isEnabled(LayoutCache::TYPE_IDENTIFIER)) {
79
80
81
-
82
- if (!$this->cacheState->isEnabled(LayoutCache::TYPE_IDENTIFIER)) {
+
+ if (!$object->dataHasChangedFor(Page::PAGE_LAYOUT)) {
83
84
85
0 commit comments