You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The product collection is being loaded twice due to calling getItems() early to check results.
Environment
PHP Version: 8.1
Magento Version: not relevant
Tweakwise Version: 8.2.0
Tweakwise Export Version: not relevant
Magento Deploy Mode: production|development
Third party modules:
Steps to reproduce
Load Tweakwise product collection
Actual result
The load method is called twice due to the collection being cleared in Model/Catalog/Layer/ItemCollectionProvider.php:99 which causes all related event listeners (catalog_product_collection_load_after) and plugins being fired twice. Resulting in a performance hit.
Expected result
When loading a collection the load method should only be fired once to prevent unnecessary overhead.
The text was updated successfully, but these errors were encountered:
Issue Brief
The product collection is being loaded twice due to calling
getItems()
early to check results.Environment
Steps to reproduce
Actual result
The
load
method is called twice due to the collection being cleared inModel/Catalog/Layer/ItemCollectionProvider.php:99
which causes all related event listeners (catalog_product_collection_load_after
) and plugins being fired twice. Resulting in a performance hit.Expected result
When loading a collection the
load
method should only be fired once to prevent unnecessary overhead.The text was updated successfully, but these errors were encountered: