Skip to content

Commit

Permalink
Do not trigger pre_update logic for HPOS setting when not actually
Browse files Browse the repository at this point in the history
changing value
  • Loading branch information
jorgeatorres committed Mar 14, 2024
1 parent bfe551b commit 01b42e2
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -311,6 +311,10 @@ private function process_pre_update_option( $value, $option, $old_value ) {
return $value;
}

if ( $old_value === $value ) {
return $value;
}

$this->order_cache->flush();
if ( ! $this->data_synchronizer->check_orders_table_exists() ) {
$this->data_synchronizer->create_database_tables();
Expand Down

0 comments on commit 01b42e2

Please sign in to comment.