elgentos / LargeConfigProducts

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

Products are not re-warmed on save #10

Closed peterjaap closed 6 years ago

peterjaap commented 6 years ago

I'll leave this issue here. How to do that is in my opinion up to the implementor.

What we've done; use https://github.com/renatocason/magento2-module-mq and https://github.com/renatocason/magento2-module-mq-mysql to use a lightweight message queue. We then created a consumer and a publisher to add product updates into the queue. It then calls the prewarmer model to re-warm products using the force option. For this purpose, I just refactored the logic in the PrewarmerCommand into a seperate Prewarmer model.

peterjaap commented 6 years ago

Changed my mind, this is now part of the extension but only as an option (the mentioned extensions are now composer suggestions).