Skip to content

Commit

Permalink
Delete only theme-related caches when saving changes (#685)
Browse files Browse the repository at this point in the history
  • Loading branch information
t-hamano authored Aug 1, 2024
1 parent 7761392 commit a8b2e52
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 @@ -394,7 +394,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 a8b2e52

Please sign in to comment.