diff --git a/lib/internal/Magento/Framework/View/Model/Layout/Merge.php b/lib/internal/Magento/Framework/View/Model/Layout/Merge.php index 5be878720620b..10651ea7d3160 100644 --- a/lib/internal/Magento/Framework/View/Model/Layout/Merge.php +++ b/lib/internal/Magento/Framework/View/Model/Layout/Merge.php @@ -427,10 +427,13 @@ public function load($handles = []) $cacheId = $this->getCacheId(); $cacheIdPageLayout = $cacheId . '_' . self::PAGE_LAYOUT_CACHE_SUFFIX; - $result = $this->_loadCache($cacheId); - if ($result) { - $this->addUpdate($result); - $this->pageLayout = $this->_loadCache($cacheIdPageLayout); + + $layoutCache = $this->_loadCache($cacheId); + $pageLayoutCache = $this->_loadCache($cacheIdPageLayout); + + if ($layoutCache && $pageLayoutCache) { + $this->addUpdate($layoutCache); + $this->pageLayout = $pageLayoutCache; foreach ($this->getHandles() as $handle) { $this->allHandles[$handle] = $this->handleProcessed; }