Releases: elgentos/LargeConfigProducts
0.3.3
0.3.2
Clean colllections cache type before prewarming, otherwise Magento will fetch the old prices from the collections cache. This mainly happens when updating prices through Update Attributes, since (probably a bug in?) Magento will not invalidate the collections cache after updating the prices that way.
0.3.1
Removed preference for LowestPriceOptionsProvider since this has been fixed in Magento 2.2.8 / 2.3.1 - see magento/magento2#13933
This has a composer requirement for magento/module-configurable-products:^100.2.8
which is in Magento 2.2.8 / 2.3.1.
0.3.0
We noticed some race conditions when saving products; the prewarmer would prewarm immediately after saving a product, while the price indexer for example would still have to return, causing the wrong (old) prices to appear on the frontend.
In order to make the prewarm dependent on the indexers, we introduced an indexer with subscriptions on the relevant tables. When the tables are updated (i.e. through of one the other indexers), the elgentos_lcp_prewarm_cl
table is populated. The cron job indexer_update_all_views
would then run through the cron and fill the message queue table which the consumer will then pick up to prewarm the updated products.
This will eliminate all race condition problems we've seen in the past. Doing a full reindex (i.e. php bin/magento ind:rei elgentos_lcp_prewarm
will prewarm all configurable products.
NOTE: please make sure you set all the indexers (including this new one) to Update on Schedule
, otherwise this will not work / work only partly.