-
Notifications
You must be signed in to change notification settings - Fork 9.4k
#6942 added check for page layout loaded from cache #16428
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
#6942 added check for page layout loaded from cache #16428
Conversation
Hi @mrIntegrator. Thank you for your contribution
For more details, please, review the Magento Contributor Assistant documentation |
Hi @orlangur, thank you for the review. |
@mrIntegrator thank you for contributing. Please accept Community Contributors team invitation here to gain extended permissions for this repository. |
Just noticed a comment regarding performance degradation, will check if slightly changing implementation helps. |
Hi @mrIntegrator @orlangur , any updates on this pull request? |
@mrIntegrator , I am closing this PR now due to inactivity. |
Hi @mrIntegrator, thank you for your contribution! |
This is the 2.2-develop version of #14129. Description copied below.
Description
Under heavy traffic, some pages will become broken because the HTML
<head>
is not present. The only remedy is to disable layout cache.When layout updates are loaded from cache, it's assumed that page layout will be loaded from cache as well. The problem is that when Redis reaches its maxmemory setting (as it might under heavy traffic), it will begin evicting keys. So if the page layout key is evicted while the layout key is not, the bug occurs. To fix this bug, we have to check for a successful load of both layout and page layout from the cache.
Fixed Issues (if relevant)
Manual testing scenarios
Contribution checklist