Skip to content
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

Touch nodes and all ancestors on page update #2226

Merged
merged 2 commits into from
Feb 19, 2022

Conversation

tvdeyen
Copy link
Member

@tvdeyen tvdeyen commented Dec 31, 2021

What is this pull request for?

Menu partials might be cached.

So we need to make sure the menu node a page might be attached to and all their ancestors get touched as well.

Closes #2080

Checklist

  • I have followed Pull Request guidelines
  • I have added a detailed description into each commit message
  • I have added tests to cover this change

@tvdeyen
Copy link
Member Author

tvdeyen commented Dec 31, 2021

Test errors seam unrelated. Investigating.

@tvdeyen tvdeyen force-pushed the touch-nodes-on-page-update branch 2 times, most recently from 51995c6 to bb8030c Compare January 1, 2022 14:35
@tvdeyen tvdeyen force-pushed the touch-nodes-on-page-update branch 2 times, most recently from 850cbbe to c08916d Compare February 18, 2022 21:56
Menu partials might be cached.
So we need to make sure the menu node a page might be
attached to and all their ancestors get touched as well.

Closes AlchemyCMS#2080
@tvdeyen tvdeyen merged commit 4b8d5ad into AlchemyCMS:main Feb 19, 2022
@tvdeyen tvdeyen deleted the touch-nodes-on-page-update branch February 19, 2022 08:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Updating Page#url_name should touch related Nodes for cache invalidation
1 participant