-
Notifications
You must be signed in to change notification settings - Fork 9.3k
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 2.2 Set cache id prefix on installation #22351
Backport 2.2 Set cache id prefix on installation #22351
Conversation
Hi @Ctucker9233. Thank you for your contribution
For more details, please, review the Magento Contributor Assistant documentation |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@Ctucker9233 original commit author must be preserved
@orlangur I've added the author's name to the description. Is that sufficient? |
@Ctucker9233 no. You need to rewrite branch history so that each commit corresponds to original one preserving authorship: https://github.com/magento/magento2/pull/18641/commits |
@orlangur I'm not able to do that. If you could assist me I'd appreciate it. If not, just close. |
@orlangur are you talking about transfering the ownership of the repository? I can see where to do that. Going forward, to preserve author info, should I have submitted the pull request from the original author's branch? I'm sorry I'm having trouble understanding how this works. |
@Ctucker9233 No, thank you, I don't need ownership of your fork :) If you used |
@Ctucker9233 just check any other backport - you'll see "author" and "committer" in each commit. The easiest way to fix is
I can add more details if you get stuck on any step. |
@orlangur @schmengler I appreciate your help guys. I think this should be closed for now. Unfortunately, I need more time to play around with it and figure out how to do it. Or mark it up for grabs. |
Ok, trying this againn using cherry-pick #22439 |
Hi @Ctucker9233, thank you for your contribution! |
Original pull request #18641 by @schmengler
Description (*)
The undocumented id_prefix option for the cache frontend is used to prefix cache keys. If it is not set, Magento uses the first 12 bits of the md5 hash of the absolute path to Magentos app/etc directory. But if this is not exactly the same on all web servers, cache invalidation does not work.
Source: https://github.com/magento/magento2/blob/2.3-develop/lib/internal/Magento/Framework/App/Cache/Frontend/Factory.php#L121-L130
To prevent this issue, the value shall be set on installation, so that the fall back on the fly does not happen anymore. Optionally, the value can be specified explicitly.
Fixed Issues (if relevant)
Manual testing scenarios (*)
Contribution checklist (*)