elgentos / LargeConfigProducts

Large Configurable Products workaround for Magento 2
91 stars 28 forks source link

Throttle consumer process to avoid replicating product prewarm #47

Open gaiterjones opened 4 years ago

gaiterjones commented 4 years ago

Issue #46

Implements a throttle effect for the consumer message queue to stop it from warming the same parent product over and over again if for example an action is performed on all variations which triggers a save event and prewarm.

A new redis cache entry is created for each product with a short TTL i.e. 60 seconds, if the cache entry exists the consumer skips prewarm,