Skip to content

Commit 44cb4d3

Browse files
committed
MAGETWO-95294: Mysql search slow on the catalog page
- changes after CR
1 parent e9a9659 commit 44cb4d3

File tree

1 file changed

+3
-1
lines changed
  • app/code/Magento/CatalogSearch/view/frontend/templates/advanced

1 file changed

+3
-1
lines changed

app/code/Magento/CatalogSearch/view/frontend/templates/advanced/result.phtml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,8 @@
1111
/**
1212
* @var $block \Magento\CatalogSearch\Block\Advanced\Result
1313
*/
14+
/** this changes need for valid apply filters and configuration before search process is started */
15+
$productList = $block->getProductListHtml();
1416
?>
1517
<?php if ($results = $block->getResultCount()): ?>
1618
<div class="search found">
@@ -49,6 +51,6 @@
4951
</div>
5052
<?php endif; ?>
5153
<?php if ($block->getResultCount()): ?>
52-
<div class="search results"><?= /* @escapeNotVerified */ $block->getProductListHtml() ?></div>
54+
<div class="search results"><?= /* @escapeNotVerified */ $productList ?></div>
5355
<?php endif; ?>
5456
<?php $block->getSearchCriterias(); ?>

0 commit comments

Comments
 (0)