Skip to content

Commit 5c84c1a

Browse files
committed
#22299: Cms block cache key does not contain the store id
1 parent 07e57ac commit 5c84c1a

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)