lizardmedia / varnish-warmer-magento2

Magento2 module for handling Varnish cache (flushing, regenerating)
MIT License
61 stars 23 forks source link

Regenerate without purging #15

Open nadroj467 opened 4 years ago

nadroj467 commented 4 years ago

Hi, Is there an option to regenerate the cache without purging first? ie. if cache is flushed via magento admin is there a command option just to regenerate?

Thanks

bartoszkubicki commented 4 years ago

So far we don't provide this functionlity. If you like, you can create PR. Right now, we are not going to add such a functioanlity, but it is not excluded in the future.

bartoszkubicki commented 4 years ago

@nadroj467 - small update - we are planning to add requested feature soon :)

diamondavocado commented 4 years ago

@bartoszkubicki Is there any update on this feature? I would find it very useful to be able to use the tool only for warming the cache, not purging it first.

Thank you for your efforts either way.

bartoszkubicki commented 4 years ago

@diamondavocado @nadroj467 so far we have to rework our priorities, and we didn't started working on this. PR is and will be open, because we want to add this feature. If you want to prepare PR, I could help you. Changes seems not to be very serious - https://github.com/lizardmedia/varnish-warmer-magento2/blob/master/Model/VarnishActionManager.php - all tools are in here. Of course if we add 5-6 more public method, maybe it is not optimal, but it is a good starting point.