Skip to content

Commit

Permalink
Merge pull request #21 from aligent/feature/BEG-154_Add_admin_configu…
Browse files Browse the repository at this point in the history
…ration_to_disable_indexers

BEG-154: Correct uses from helper config function
  • Loading branch information
aligent-lturner authored Apr 3, 2024
2 parents 1305d75 + f4dead0 commit 5817b17
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Model/Indexer/Category/CategoryIndexer.php
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,7 @@ public function executeByDimensions(array $dimensions, \Traversable $entityIds):
$storeId = (int)$dimensions[StoreDimensionProvider::DIMENSION_NAME]->getValue();

if (!$this->prerenderConfigHelper->isRecacheEnabled($storeId)
|| !$this->prerenderConfigHelper->isProductCategoryRecacheEnabled($storeId)) {
|| !$this->prerenderConfigHelper->isCategoryRecacheEnabled($storeId)) {
return;
}

Expand Down
2 changes: 1 addition & 1 deletion Model/Indexer/Product/ProductIndexer.php
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,7 @@ public function executeByDimensions(array $dimensions, \Traversable $entityIds):
$storeId = (int)$dimensions[StoreDimensionProvider::DIMENSION_NAME]->getValue();

if (!$this->prerenderConfigHelper->isRecacheEnabled($storeId)
|| !$this->prerenderConfigHelper->isProductCategoryRecacheEnabled($storeId)) {
|| !$this->prerenderConfigHelper->isProductRecacheEnabled($storeId)) {
return;
}

Expand Down

0 comments on commit 5817b17

Please sign in to comment.