mirror of
https://github.com/WordPress/create-block-theme.git
synced 2025-10-03 16:11:13 +08:00
Delete only theme-related caches when saving changes (#685)
This commit is contained in:
parent
776139256f
commit
a8b2e52a9b
1 changed files with 1 additions and 1 deletions
|
@ -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(
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue