-
-
Notifications
You must be signed in to change notification settings - Fork 225
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
!!! FEATURE: Remove legacy cache tag support #3639
!!! FEATURE: Remove legacy cache tag support #3639
Conversation
Currently checking if I can provide a core migration for those old tags. |
Would love to get this into 8, how can i help? |
Yes, will quickly do it. |
With this change Neos stops flushing old style cache tags used in Neos < 4.1. To prevent issues with caches that are not updated, all content cache tags in Fusion should be defined with the `Neos.Caching` Eel helper which exists since Neos 4.1.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good to me by reading
Hm I rebased and force pushed, but nothing is happening... |
38ba59e
to
cc845a4
Compare
Another amend and force pushed fixed it. Now only the new commits are visible. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fine by reading
Ah, I see…
|
Try to trigger the check… |
What I did
In Neos 4.1 new Eel helpers were introduced to generate content cache tags in Fusion. Those make sure that the cache tags provided by the integrator are valid.
Until Neos 4.0 they needed to be written manually as string which was error prone.
But to support old cache tags that were lacking the workspace context the
ContentCacheFlusher
still cleared them.This change removes that support. So this is breaking and projects need to be adjusted when upgrading and still using those old cache tags.
The advantage of removing them is that the number of cache tags to be flushed during publishing is lower. TODO: Add number.
This change requires #3631 to be merged first.
How I did it
Removed the legacy cache tag generation.
The change also include a new code migration version
20220318111600
to replace the most commonly used legacy cache tags with matching eel helper calls: