-
Notifications
You must be signed in to change notification settings - Fork 13
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
Consider purging everything when a nav menu is updated #115
Comments
Do you have a better idea? At the moment is clearing a lot of keys for nothing. |
I don't like auto-purging the whole cache. However, we could pop an admin notice informing the user that the action they just took changes content on a lot of pages and if they want it to be immediately visible, they should purge the whole cache. E.g. make it something for the individual site admin to decide on. |
Nav menus are being rebuilt as Gutenberg blocks in WordPress core, so this isn't an optimization worth solving for at this point. |
FWIW not all themes are using the new navigation block. Most of my clients have custom themes built with Sage and use Navi (https://github.com/Log1x/navi) to generate the markup. Considering nav updates are relatively infrequent on most sites, I think clearing the whole cache would be preferable to requiring site owners to log into Pantheon to manually clear the cache in order to see the update right away. |
From #112
The text was updated successfully, but these errors were encountered: