Remove unwanted transient then were not set
This commit is contained in:
parent
df2aded066
commit
0432b58182
|
@ -83,7 +83,6 @@ if ( ! class_exists( 'WC_Admin_Settings', false ) ) :
|
||||||
|
|
||||||
// Clear any unwanted data and flush rules.
|
// Clear any unwanted data and flush rules.
|
||||||
add_option( 'woocommerce_queue_flush_rewrite_rules', 'true' );
|
add_option( 'woocommerce_queue_flush_rewrite_rules', 'true' );
|
||||||
delete_transient( 'woocommerce_cache_excluded_uris' );
|
|
||||||
WC()->query->init_query_vars();
|
WC()->query->init_query_vars();
|
||||||
WC()->query->add_endpoints();
|
WC()->query->add_endpoints();
|
||||||
|
|
||||||
|
|
|
@ -402,8 +402,6 @@ class WC_Install {
|
||||||
foreach ( $pages as $key => $page ) {
|
foreach ( $pages as $key => $page ) {
|
||||||
wc_create_page( esc_sql( $page['name'] ), 'woocommerce_' . $key . '_page_id', $page['title'], $page['content'], ! empty( $page['parent'] ) ? wc_get_page_id( $page['parent'] ) : '' );
|
wc_create_page( esc_sql( $page['name'] ), 'woocommerce_' . $key . '_page_id', $page['title'], $page['content'], ! empty( $page['parent'] ) ? wc_get_page_id( $page['parent'] ) : '' );
|
||||||
}
|
}
|
||||||
|
|
||||||
delete_transient( 'woocommerce_cache_excluded_uris' );
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
Loading…
Reference in New Issue