From ebba366433f92c9b53961ba31777b05802e6806b Mon Sep 17 00:00:00 2001 From: Mike Jolley Date: Tue, 5 Jan 2016 15:19:45 +0000 Subject: [PATCH] Delete page transient after creating pages Closes #9962 --- includes/class-wc-install.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/includes/class-wc-install.php b/includes/class-wc-install.php index ce2966a758c..60e5b4c9d70 100644 --- a/includes/class-wc-install.php +++ b/includes/class-wc-install.php @@ -254,6 +254,8 @@ class WC_Install { 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'] ) : '' ); } + + delete_transient( 'woocommerce_cache_excluded_uris' ); } /**