Flush cache since we are updating option.

This commit is contained in:
Vedanshu Jain 2023-07-04 17:56:03 +05:30
parent 661219fb52
commit 8af85218be
1 changed files with 1 additions and 0 deletions

View File

@ -164,6 +164,7 @@ class OrderHelper {
$features_controller->change_feature_enable( 'custom_order_tables', $enabled ); $features_controller->change_feature_enable( 'custom_order_tables', $enabled );
update_option( CustomOrdersTableController::CUSTOM_ORDERS_TABLE_USAGE_ENABLED_OPTION, wc_bool_to_string( $enabled ) ); update_option( CustomOrdersTableController::CUSTOM_ORDERS_TABLE_USAGE_ENABLED_OPTION, wc_bool_to_string( $enabled ) );
wp_cache_flush();
// Confirm things are really correct. // Confirm things are really correct.
$wc_data_store = WC_Data_Store::load( 'order' ); $wc_data_store = WC_Data_Store::load( 'order' );