Cache is preventing that edited themes render as expected
matiasbenedetto opened this issue · comments
What?
When the user makes changes to a theme and save the changes using CBT in platforms using WP_Cache, the editor and the site frontend could fail to render the site because of the cache.
How to reproduce
- Create a WordPress site in a platform using Object cache (example: Pressable).
- Install Create Block Theme plugin.
- Open the site editor, change the title of the default theme, and save the changes.
- Go to CBT sidebar and click 'Save theme changes'.
- The editor page will refresh, and you will see a blank page.
Screencast
This screencast reproduces the issue and also shows how to fix it manually flushing the sites cache.