Delete only theme-related caches when saving changes (#685)

This commit is contained in:
Aki Hamano 2024-08-02 00:24:38 +09:00 committed by GitHub
parent 776139256f
commit a8b2e52a9b
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -394,7 +394,7 @@ class CBT_Theme_API {
CBT_Theme_Styles::clear_user_styles_customizations(); CBT_Theme_Styles::clear_user_styles_customizations();
} }


wp_cache_flush(); wp_get_theme()->cache_delete();


return new WP_REST_Response( return new WP_REST_Response(
array( array(