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 db74133 commit 6bc291dCopy full SHA for 6bc291d
lib/internal/Magento/Framework/Config/View.php
@@ -244,7 +244,16 @@ protected function initData()
244
public function read($scope = null)
245
{
246
$scope = $scope ?: $this->_defaultScope;
247
- $layoutCacheKey = __CLASS__ . '-'. $scope . '-' . $this->_fileName . '-' . $this->design->getArea();
+ $layoutCacheKey = implode(
248
+ '-',
249
+ [
250
+ __CLASS__,
251
+ $scope,
252
+ $this->_fileName,
253
+ $this->design->getArea(),
254
+ $this->serializer->serialize($this->xpath)
255
+ ]
256
+ );
257
if (!isset($this->scopedLayoutCache[$layoutCacheKey])) {
258
if ($data = $this->layoutCache->load($layoutCacheKey)) {
259
$this->scopedLayoutCache[$layoutCacheKey] = $this->serializer->unserialize($data);
0 commit comments