Skip to content

Commit efa3edb

Browse files
Fix PageCache: async rendering of blocks can corrupt layout cache #8554 #9050 #9560
Adapted PageCache and Framework tests
1 parent 516b529 commit efa3edb

File tree

1 file changed

+3
-2
lines changed
  • lib/internal/Magento/Framework/View/Model/Layout

1 file changed

+3
-2
lines changed

lib/internal/Magento/Framework/View/Model/Layout/Merge.php

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -727,7 +727,7 @@ protected function _loadFileLayoutUpdatesXml()
727727
$updateFiles = array_merge($updateFiles, $this->pageLayoutFileSource->getFiles($theme, '*.xml'));
728728
$useErrors = libxml_use_internal_errors(true);
729729
foreach ($updateFiles as $file) {
730-
/** @var $fileReader \Magento\Framework\Filesystem\File\Read */
730+
/** @var $fileReader \Magento\Framework\Filesystem\File\Read */
731731
$fileReader = $this->readFactory->create($file->getFilename(), DriverPool::FILE);
732732
$fileStr = $fileReader->readAll($file->getName());
733733
$fileStr = $this->_substitutePlaceholders($fileStr);
@@ -926,6 +926,7 @@ public function getScope()
926926
*/
927927
public function getCacheId()
928928
{
929-
return $this->generateCacheId(md5(implode('|', array_merge($this->getHandles(), $this->layoutCacheKey->getCacheKeys()))));
929+
return $this->generateCacheId(md5(implode('|',
930+
array_merge($this->getHandles(), $this->layoutCacheKey->getCacheKeys()))));
930931
}
931932
}

0 commit comments

Comments
 (0)