Merge pull request #18849 from woocommerce/fix/wp-option-updates-spike

Fix spike in update queries on the wp_options table
This commit is contained in:
Claudiu Lodromanean 2018-02-07 13:09:55 -08:00 committed by GitHub
commit d6262e0b0e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -265,7 +265,7 @@ class WC_Post_types {
}
// If theme support changes, we may need to flush permalinks since some are changed based on this flag.
if ( update_option( 'current_theme_supports_woocommerce', current_theme_supports( 'woocommerce' ) ? 1 : 0 ) ) {
if ( update_option( 'current_theme_supports_woocommerce', current_theme_supports( 'woocommerce' ) ? 'yes' : 'no' ) ) {
add_option( 'woocommerce_queue_flush_rewrite_rules', 'true' );
}