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

Improve cache key defaults for menus #2138 #2160

Merged

Conversation

oneiros
Copy link
Contributor

@oneiros oneiros commented Jul 9, 2021

Following up on #2153 this is the very same change for 5.2-stable.

If you plan to release another point release for 5.2 before releasing version 6 this makes total sense to me. New projects will still use 5.2 until version 6 is available. And I expect menus to be generated relatively early on when setting up a new project.

With that being said, do you still think this should be ported even further back?

Will people still start new projects with 5.1 for example? Will people who have been on 5.1 for a long time and never made the jump to 5.2 upgrade to a new point release of 5.1 and then generate new menus?

With the currently generated templates the way menus are
being displayed depends on the (current) page and whether
one is in preview mode or not.

Thus both facts should probably go in the cache key as well.
Copy link
Member

@tvdeyen tvdeyen left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you and fair point!

Since 5.2 is the current stable release and we always ever release next major version "when it's done" we will most likely release another point release for the 5.2 (and maybe a 5.3) before we release v6.

@tvdeyen tvdeyen merged commit 53ef8f0 into AlchemyCMS:5.2-stable Jul 10, 2021
tvdeyen added a commit that referenced this pull request Sep 15, 2021
- Return only pages from current site in api [#2169](#2169) ([afdev82](https://github.com/afdev82))
- Improve cache key defaults for menus #2138 [#2160](#2160) ([oneiros](https://github.com/oneiros))
- generate picture thumbnails only for pictures with convertible format [#2130](#2130) ([afdev82](https://github.com/afdev82))
- Backport #2114 to v5.2 [#2116](#2116) ([afdev82](https://github.com/afdev82))
- Add webpacker tasks to Alchemy upgrader [#2115](#2115) ([dbwinger](https://github.com/dbwinger))
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.

2 participants