Skip to content

Commit d7b1dd4

Browse files
committed
Remove active category in the cache key
1 parent e53e613 commit d7b1dd4

File tree

1 file changed

+0
-18
lines changed

1 file changed

+0
-18
lines changed

app/code/Magento/Catalog/Plugin/Block/Topmenu.php

Lines changed: 0 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -196,22 +196,4 @@ protected function getCategoryTree($storeId, $rootId)
196196

197197
return $collection;
198198
}
199-
200-
/**
201-
* Add active
202-
*
203-
* @param \Magento\Theme\Block\Html\Topmenu $subject
204-
* @param string[] $result
205-
* @return string[]
206-
* @SuppressWarnings(PHPMD.UnusedFormalParameter)
207-
*/
208-
public function afterGetCacheKeyInfo(\Magento\Theme\Block\Html\Topmenu $subject, array $result)
209-
{
210-
$activeCategory = $this->getCurrentCategory();
211-
if ($activeCategory) {
212-
$result[] = Category::CACHE_TAG . '_' . $activeCategory->getId();
213-
}
214-
215-
return $result;
216-
}
217199
}

0 commit comments

Comments
 (0)