Skip to content

Commit

Permalink
Smile-SA#2097 Slow Search Queries - Possibly related to virtual categ…
Browse files Browse the repository at this point in the history
…ories
  • Loading branch information
bmxmale authored Nov 19, 2021
1 parent 0012045 commit 6a9734d
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/module-elasticsuite-virtual-category/Helper/Rule.php
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,10 @@ public function __construct(\Magento\Framework\App\CacheInterface $cache)
*/
public function loadUsingCache(CategoryInterface $category, $callback)
{
if (0 === (int)$category->getIsVirtualCategory()) {
return null;
}

\Magento\Framework\Profiler::start('ES:Virtual Rule ' . $callback);
$cacheKey = implode('|', [$callback, $category->getStoreId(), $category->getId()]);

Expand Down

0 comments on commit 6a9734d

Please sign in to comment.