Skip to content

Commit 1f818ef

Browse files
authored
ENGCOM-4745: #22299: Cms block cache key does not contain the store id #22302
2 parents 569819a + cda36f3 commit 1f818ef

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

app/code/Magento/Cms/Block/Block.php

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -84,4 +84,14 @@ public function getIdentities()
8484
{
8585
return [\Magento\Cms\Model\Block::CACHE_TAG . '_' . $this->getBlockId()];
8686
}
87+
88+
/**
89+
* @inheritdoc
90+
*/
91+
public function getCacheKeyInfo()
92+
{
93+
$cacheKeyInfo = parent::getCacheKeyInfo();
94+
$cacheKeyInfo[] = $this->_storeManager->getStore()->getId();
95+
return $cacheKeyInfo;
96+
}
8797
}

0 commit comments

Comments
 (0)