File tree Expand file tree Collapse file tree 1 file changed +4
-0
lines changed Expand file tree Collapse file tree 1 file changed +4
-0
lines changed Original file line number Diff line number Diff 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 )
You can’t perform that action at this time.
0 commit comments