Style variation cache not cleared with WP_DEVELOPMENT_MODE set to theme #60399
Labels
Global Styles
Anything related to the broader Global Styles efforts, including Styles Engine and theme.json
[Type] Bug
An existing feature does not function as intended
Description
When developing a theme, it is handy to have
define( 'WP_DEVELOPMENT_MODE', 'theme' );
defined so your theme.json styles don't get cached. While this works for theme.json, it doesn't seem to clear the cache for style variations in the /styles folder.The only way I can get the cache to clear is by going to Editor → Styles and clicking another style and clicking back. Ideally using the theme development mode should clear all .json caches.
Step-by-step reproduction instructions
#000
and save.Screenshots, screen recording, code snippet
No response
Environment info
WordPress 6.5
Please confirm that you have searched existing issues in the repo.
Yes
Please confirm that you have tested with all plugins deactivated except Gutenberg.
Yes
The text was updated successfully, but these errors were encountered: