-
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
Use Object Cache for Category Links to avoid redundant calls #29565
Use Object Cache for Category Links to avoid redundant calls #29565
Conversation
Hi @lbajsarowicz. Thank you for your contribution
❗ Automated tests can be triggered manually with an appropriate comment:
You can find more information about the builds here ℹ️ Please run only needed test builds instead of all when developing. Please run all test builds before sending your PR for review. For more details, please, review the Magento Contributor Guide documentation. 🕙 You can find the schedule on the Magento Community Calendar page. 📞 The triage of Pull Requests happens in the queue order. If you want to speed up the delivery of your contribution, please join the Community Contributions Triage session to discuss the appropriate ticket. 🎥 You can find the recording of the previous Community Contributions Triage on the Magento Youtube Channel ✏️ Feel free to post questions/proposals/feedback related to the Community Contributions Triage process to the corresponding Slack Channel |
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.
@lbajsarowicz seems like your changes broke some functionality, as integration and web api tests are failing. Could you check it?
@magento run WebAPI Tests, Integration Tests Thanks @ihor-sviziev . Looks like I haven't covered the situation when during a single runtime the data is changed. I just covered that situation by adding Object Cache cleanup method. |
@lbajsarowicz integration tests still failing, please review them |
@lbajsarowicz , @ihor-sviziev it's a good idea to store some values in cache and don't make a lot of requests, such approach can significantly improve performance but I personally like the approach when caching object (in case with interface and preference) or caching plugin is implemented, it will provide ability for developers to disable cache in some extra cases. For example, right now we see several failures of integration tests due to cache, with caching object or plugin we will be able to redefine the preference with object without cache or disable the plugin. |
@magento create issue |
@sidolov The hell around introducing new classes (including constructor dependencies) and effort to do it in a backwards-compatible manner is too big for "quick fixes" that I'm trying to do (low-hanging fruits). We should ask one of the teams who don't really care about backwards-compatibility - eg. Security Team, to introduce that the way you ask. I'm going to improve this approach, as "it does the job it should", but any further work in that area without redesign does not makes sense at all. Look how poor the modified class looks like, and you'd understand why I don't want to play with it more than I need. |
Hi @lbajsarowicz , |
@ihor-sviziev I just scheduled that for next weekend. |
@lbajsarowicz I am closing this PR now due to inactivity. |
Hi @lbajsarowicz, thank you for your contribution! |
Description (*)
Having 52 products in cart, I get 156 requests to the database:
This PR goal is to reduce this to 52.
After change, for 26 products:
This is a part of #29376 process.
Related Pull Requests
Fixed Issues (if relevant)
Manual testing scenarios (*)
N/A
Questions or comments
N/A
Contribution checklist (*)
Resolved issues: