Skip to content

0.3.0

Compare
Choose a tag to compare
@peterjaap peterjaap released this 16 Apr 12:51
· 9 commits to master since this release

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.