Disable attributes lookup table usage before initiating regeneration.

This commit is contained in:
Nestor Soriano 2021-06-11 11:59:30 +02:00
parent 7c9137698b
commit 6dbcd64a21
No known key found for this signature in database
GPG Key ID: 08110F3518C12CAD
1 changed files with 2 additions and 0 deletions

View File

@ -93,6 +93,8 @@ class DataRegenerator {
* (Note how we are returning "false" since the class handles the step scheduling by itself). * (Note how we are returning "false" since the class handles the step scheduling by itself).
*/ */
public function initiate_regeneration() { public function initiate_regeneration() {
$this->enable_or_disable_lookup_table_usage( false );
$this->delete_all_attributes_lookup_data(); $this->delete_all_attributes_lookup_data();
$products_exist = $this->initialize_table_and_data(); $products_exist = $this->initialize_table_and_data();
if ( $products_exist ) { if ( $products_exist ) {