It seems theme.json
and styles/[theme-name].json
are cached differently. I’ve disabled webserver cache, browser cache and implemented the debug/dev constants mentioned:
define( 'WP_DEBUG', true );
define( 'SCRIPT_DEBUG', true );
define( 'WP_DEVELOPMENT_MODE', 'all' );
define( 'WP_ENVIRONMENT_TYPE', 'local' );
My changes to theme.json
now take instant effect after a page reload, but anything in a styles/[theme-name].json
I have to follow the editor reset process described by @wpbred. Specifically:
- Navigate to editor > styles
- Hard reload Ctrl + F5
- Select and save another theme
- Re-select and save the theme with changes
- Reload front end to see changes