elgentos / LargeConfigProducts

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

Avoid consumer queuing same product for prewarm within a certain time frame #46

Closed gaiterjones closed 4 years ago

gaiterjones commented 4 years ago

If for some reason you want to disable a large set of variations by selecting them all and then choosing actions -> disable. The resulting product updates trigger a parent prewarm for every variation. So if you disable 250 variations the parent product is pre warmed 250 times!

I know this because I am sitting here watching the same parent product get prewarmed over and over again which is rather boring.

I suggest an enhancement whereby if the parent has already been prewarmed in the last X seconds, the consumer skips it...

I will work on this.

gaiterjones commented 4 years ago

Implemented in https://github.com/elgentos/LargeConfigProducts/pull/47/commits/ca644fbafc4d7ad401778b60033a9bf608629429