-
-
Notifications
You must be signed in to change notification settings - Fork 436
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
Eav config cache followup for multi scope load #3044
Eav config cache followup for multi scope load #3044
Conversation
…s in the same context due to entity type attribute collection being reused
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.
Tested with PHP 8.0 and 8.2.
…ollection and for code reuse instead
…d' into eav_config_cache_multi_scope_load
Is it possible to get this merged, would make it easier to get the changes for #3057 committed and into a PR? |
@luigifab could you check it again? |
when we get another green light I'll merge it right away. I keep commenting stuff cause I hate when PRs go sleepy. |
Due to the way
Mage_Eav_Model_Entity_Type::getAttributeCollection
reuses the collection and the fact thatAttribute_Collection::addStoreLabel
does not support adding multiple stores at once it's impossible to load multiple stores attributes during the same context (page request, cli call, cron job, ...).This is a followup that adds a non-breaking bypass to this behaviour, allowing retrieval of a non-cache collection.
It also stops the API from sometimes loading more data then actually requested, due to the collection being modified (but this did not appear to break anything).
Related Pull Requests
#2993
Fixed Issues (if relevant)
Manual testing scenarios (*)