diff --git a/includes/class-create-block-theme-api.php b/includes/class-create-block-theme-api.php index 604fa75b..bf570859 100644 --- a/includes/class-create-block-theme-api.php +++ b/includes/class-create-block-theme-api.php @@ -382,7 +382,7 @@ function rest_save_theme( $request ) { CBT_Theme_Styles::clear_user_styles_customizations(); } - wp_cache_flush(); + wp_get_theme()->cache_delete(); return new WP_REST_Response( array(