Skip to content

Commit

Permalink
Delete only theme-related caches when saving changes
Browse files Browse the repository at this point in the history
  • Loading branch information
t-hamano committed Jul 6, 2024
1 parent 082be0b commit 5027bdc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion includes/class-create-block-theme-api.php
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down

0 comments on commit 5027bdc

Please sign in to comment.