Skip to content

Commit 2e8fac6

Browse files
authored
Add Store emulation for full category reindexing (#826)
1 parent 24886b2 commit 2e8fac6

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

Helper/Data.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -350,8 +350,12 @@ public function rebuildCategoryIndex($storeId, $page, $pageSize)
350350
return;
351351
}
352352

353+
$this->startEmulation($storeId);
354+
353355
$collection = $this->categoryHelper->getCategoryCollectionQuery($storeId, null);
354356
$this->rebuildStoreCategoryIndexPage($storeId, $collection, $page, $pageSize);
357+
358+
$this->stopEmulation();
355359
}
356360

357361
public function rebuildStoreSuggestionIndexPage($storeId, $collectionDefault, $page, $pageSize)

0 commit comments

Comments
 (0)