[wp-trac] [WordPress Trac] #59662: Clear block theme file caches when editing the theme in the Theme File Editor
WordPress Trac
noreply at wordpress.org
Wed Jan 3 22:36:08 UTC 2024
#59662: Clear block theme file caches when editing the theme in the Theme File
Editor
------------------------------------------+--------------------------
Reporter: flixos90 | Owner: flixos90
Type: defect (bug) | Status: assigned
Priority: normal | Milestone: 6.5
Component: Themes | Version: 6.2
Severity: normal | Resolution:
Keywords: needs-patch needs-unit-tests | Focuses: performance
------------------------------------------+--------------------------
Comment (by spacedmonkey):
Can you sure it doesn't?
When `wp_edit_theme_plugin_file` is called, it calls
`$theme->cache_delete();`. See these [https://github.com/WordPress
/wordpress-develop/blob/43d2455dc68072fdd43c3c800cc8c32590f23cbe/src/wp-
admin/includes/file.php#L648-L650 lines].
`cache_delete` method calls `delete_pattern_cache`. See the
[https://github.com/WordPress/wordpress-
develop/blob/43d2455dc68072fdd43c3c800cc8c32590f23cbe/src/wp-includes
/class-wp-theme.php#L829-L845 code].
I did check this when implementing this feature.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/59662#comment:4>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list