-
Notifications
You must be signed in to change notification settings - Fork 9.4k
[Backport] #6942 added check for page layout loaded from cache #14129
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
[Backport] #6942 added check for page layout loaded from cache #14129
Conversation
c8600c8
to
913aacf
Compare
Hi @mrIntegrator, any changes should be applied to Please create a separate PR and sign CLA. |
913aacf
to
75588b6
Compare
75588b6
to
8dddc25
Compare
Sorry about the confusion about the base branch. I had misread your comment. The 2.2-develop pull request has been created: #16428. The only difference is in the integration test. |
8dddc25
to
879383d
Compare
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. |
Hi @mrIntegrator , please, resolve merge conflict |
Merge conflict resolved. |
Unfortunately, we can not accept this Pull Request to 2.1 release line, as it brings significant performance degradation. You may see attached file for the details. We are closing this PR now, but you may continue working and improving the same submission for 2.2. Thank you |
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
Original PR
#16428