-
Notifications
You must be signed in to change notification settings - Fork 36
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
Included Cache doesn't get refresh when adding elements #550
Comments
Do you mean that you reorder the new element within the Verbb Navigation plugin or where exactly? |
Yes, A way to manually clear/refresh a single include would be nice, as I don't think there is an option for that at the moment? |
In my tests the cached include is being refreshed as expected. Can you show me how you are outputting the navigation items? |
|
Looks like it's working now, |
Great! |
Looks like there still goes something wrong, when editing only the title, no refresh jobs are getting created, when debugging it prevents refreshing, because the Node element doesn't track changes and the canonicalId is set (https://github.com/craftcms/cms/blob/develop/src/base/Element.php#L4271), is there a way to enable |
Thanks, I can confirm this issue and have created a discussion at craftcms/cms#13619 to see how to best handle this going forward. |
As of verbb/navigation#367, this should now be working in version 2.0.21 of the Navigation plugin, can you please confirm? |
We use
includeCached
tag in the head of our website and in there we use categories and nodes from the Verbb Navigation plugin.We see a problem where we add a new node to the navigation or add a new category. We would expect that the included cache file would be refreshed, but nothing is triggered.
Then when we move the new element in it's structure, Blitz picks it up and then refreshes the cache.
So for now we advise our customers to drag the element up or down and after the cache is refreshed, drag it back to it's original place. Or maybe there is another workaround, but it isn't ideal.
We use Blitz 4.5.2 and Craft 4.4.15
Settings:
The text was updated successfully, but these errors were encountered: