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 4a1f1b2 commit e2f29b5Copy full SHA for e2f29b5
app/code/Magento/Catalog/Model/CategoryRepository.php
@@ -147,7 +147,7 @@ public function save(CategoryInterface $category)
147
*/
148
public function get($categoryId, $storeId = null)
149
{
150
- $cacheKey = $storeId ?? 'all';
+ $cacheKey = $storeId ?? $this->storeManager->getStore()->getId();
151
if (!isset($this->instances[$categoryId][$cacheKey])) {
152
/** @var Category $category */
153
$category = $this->categoryFactory->create();
0 commit comments