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

[6.0] Do not eager load elements in pages controller #2474

Merged

Conversation

tvdeyen
Copy link
Member

@tvdeyen tvdeyen commented May 11, 2023

Same as #2472 but for 6.0-stable

Closes #2468

@tvdeyen
Copy link
Member Author

tvdeyen commented May 11, 2023

@wuservices would you mind to test out this PR by referencing the branch in your local Gemfile?

gem "alchemy_cms", git: "https://github.com/tvdeyen/alchemy_cms", branch: "6.0-do-not-eager-load-elements-on-page"

@tvdeyen tvdeyen changed the title Do not eager load elements in pages controller [6.0] Do not eager load elements in pages controller May 11, 2023
@wuservices
Copy link
Contributor

@tvdeyen thanks for the speedy fix! Verified in my test repo and our real project. 🚀
image

Pages make use of fragment caching and we cannot know which element is cached.

Therefore we cannot know what to eager load.

Closes AlchemyCMS#2468

This partially reverts commit 0aa84d0.
@tvdeyen tvdeyen force-pushed the 6.0-do-not-eager-load-elements-on-page branch from f39ac51 to 3462603 Compare May 18, 2023 08:00
@tvdeyen tvdeyen merged commit cafffe4 into AlchemyCMS:6.0-stable May 18, 2023
@tvdeyen tvdeyen deleted the 6.0-do-not-eager-load-elements-on-page branch May 18, 2023 08:42
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