Skip to content

Commit 15962f1

Browse files
committed
Merge pull request #13 from magento-goinc/MAGETWO-49003
MAGETWO-49003: Huge duplication of SQL queries on CMS and Category pages
2 parents 90ce2db + cebb41f commit 15962f1

File tree

1 file changed

+1
-0
lines changed
  • app/code/Magento/Widget/Model/ResourceModel/Layout

1 file changed

+1
-0
lines changed

app/code/Magento/Widget/Model/ResourceModel/Layout/Update.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,7 @@ public function fetchUpdatesByHandle(
6363
$bind = ['theme_id' => $theme->getId(), 'store_id' => $store->getId()];
6464
$cacheKey = implode('-', $bind);
6565
if (!isset($this->layoutUpdateCache[$cacheKey])) {
66+
$this->layoutUpdateCache[$cacheKey] = [];
6667
foreach ($this->getConnection()->fetchAll($this->_getFetchUpdatesByHandleSelect(), $bind) as $layout) {
6768
if (!isset($this->layoutUpdateCache[$cacheKey][$layout['handle']])) {
6869
$this->layoutUpdateCache[$cacheKey][$layout['handle']] = '';

0 commit comments

Comments
 (0)