Skip to content

Commit f5bfde4

Browse files
committed
add emulation for pages. Fixes #209
1 parent 58f05e2 commit f5bfde4

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

code/Helper/Data.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -156,6 +156,8 @@ public function rebuildStoreAdditionalSectionsIndex($storeId)
156156

157157
public function rebuildStorePageIndex($storeId)
158158
{
159+
$emulationInfo = $this->startEmulation($storeId);
160+
159161
$index_name = $this->page_helper->getIndexName($storeId);
160162

161163
$pages = $this->page_helper->getPages($storeId);
@@ -166,6 +168,8 @@ public function rebuildStorePageIndex($storeId)
166168
$this->algolia_helper->moveIndex($index_name.'_tmp', $index_name);
167169

168170
$this->algolia_helper->setSettings($index_name, $this->page_helper->getIndexSettings($storeId));
171+
172+
$this->stopEmulation($emulationInfo);
169173
}
170174

171175
public function rebuildStoreCategoryIndex($storeId, $categoryIds = null)

0 commit comments

Comments
 (0)