-
Notifications
You must be signed in to change notification settings - Fork 4.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Global Styles: Switching styles takes a while on the frontend #43914
Comments
Just to confirm, this is running latest trunk Gutenberg and TT3. |
Probably a duplicate of #43395, or the cause might be the same. |
Excellent, thank you! Closing in favor of #43395. |
Reopening as this issue does appear to be separate from #43395 after all. |
The improvements proposed by @spacedmonkey in #56910 will also fix this issue. The missing cache invalidation for |
@jasmussen, I'm thinking of bumping this issue to WP 6.2. The problem has been around since WP 6.0, and I think we both prefer to solve it with better cache invalidation proposed in #56910. |
No objections from my part. It's a good one to fix, but definitely let's do it right. |
Switching to an alternate style variation, inside the editor, is instant. Click one of the tiles and the visual is shown immediately:
If you then save the changes and preview the site frontend, however, the styles take a while to settle in. The following GIF shows changing a style, opening the frontend in a new tab, and then reloading the page over and over to see what takes:
Note that the typography and a few of the style changes are immediately shown. But things like background colors take a while, up to several minutes. Clearing the cache doesn't make any difference.
Steps to reproduce:
Tested in Chrome on Mac.
The text was updated successfully, but these errors were encountered: