Skip to content

Commit

Permalink
magento#22299: Cms block cache key does not contain the store id
Browse files Browse the repository at this point in the history
  • Loading branch information
tzyganu authored and amol2jcommerce committed Apr 29, 2019
1 parent 4992141 commit d707c6b
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions app/code/Magento/Cms/Block/Block.php
Original file line number Diff line number Diff line change
Expand Up @@ -84,4 +84,14 @@ public function getIdentities()
{
return [\Magento\Cms\Model\Block::CACHE_TAG . '_' . $this->getBlockId()];
}

/**
* {@inheritdoc}
*/
public function getCacheKeyInfo()
{
$cacheKeyInfo = parent::getCacheKeyInfo();
$cacheKeyInfo[] = $this->_storeManager->getStore()->getId();
return $cacheKeyInfo;
}
}

0 comments on commit d707c6b

Please sign in to comment.