Skip to content

Commit 61aa9d9

Browse files
committed
ACP2E-4303: Reindexing stuck due to high memory usage
1 parent e3652d6 commit 61aa9d9

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

app/code/Magento/CatalogRule/Model/Indexer/IndexBuilder.php

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -815,13 +815,11 @@ private function filterExcludedWebsitesForRule(Rule $rule, array $allExcludedWeb
815815

816816
foreach ($customerGroupIds as $customerGroupId) {
817817
if (isset($allExcludedWebsites[$customerGroupId])) {
818-
foreach ($allExcludedWebsites[$customerGroupId] as $websiteId) {
819-
$ruleExcludedWebsites[$websiteId] = $websiteId;
820-
}
818+
$ruleExcludedWebsites[$customerGroupId] = $allExcludedWebsites[$customerGroupId];
821819
}
822820
}
823821

824-
return array_values($ruleExcludedWebsites);
822+
return $ruleExcludedWebsites;
825823
}
826824

827825
/**

0 commit comments

Comments
 (0)