-
Notifications
You must be signed in to change notification settings - Fork 9.4k
[Children Ids] #184 - Create a cache to store children ids #23910
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
[Children Ids] #184 - Create a cache to store children ids #23910
Conversation
Hi @PierreLeMaguer. Thank you for your contribution
For more details, please, review the Magento Contributor Assistant documentation |
/** | ||
* @var array | ||
*/ | ||
protected $_cacheChildrenIds = []; |
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.
All new property must be private
PR is adding cache, but missed the cache cleanup that will cause issue |
@PierreLeMaguer , I am closing this PR now due to inactivity. |
Hi @PierreLeMaguer, thank you for your contribution! |
Hi @PierreLeMaguer. Thank you for your contribution
For more details, please, review the Magento Contributor Guide 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.
@romainruaud , please, make protected $_cacheChildrenIds = [];
as private, try to avoid underscores in property name. That's it
2f2d737
to
3144980
Compare
Hi @sidolov , the protected property is needed to use it in all child classes. |
@PierreLeMaguer , please, define private property in the each product type class instead of protected. Also, please, sign CLA, otherwise we cannot proceed with the pull request. Thank you. |
3144980
to
f55e1fd
Compare
Hi @sidolov , I changed the property for a private property. |
@PierreLeMaguer please, take a look at failed tests, looks like the solution caused the behavior change |
@PierreLeMaguer I am closing this PR now due to inactivity. |
Hi @PierreLeMaguer, thank you for your contribution! |
Fixed Issues (if relevant)
magento/community-features#183: Improve the performance of the method app/code/Magento/Eav/Model/Config.php::getAttribute
Questions or comments
Contribution checklist (*)