varnish-warmer-magento2 icon indicating copy to clipboard operation
varnish-warmer-magento2 copied to clipboard

Regenerate without purging

Open nadroj467 opened this issue 5 years ago • 4 comments

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

nadroj467 avatar Nov 06 '19 23:11 nadroj467

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 avatar Nov 09 '19 15:11 bartoszkubicki

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

bartoszkubicki avatar Jan 18 '20 23:01 bartoszkubicki

@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.

diamondavocado avatar Jun 30 '20 04:06 diamondavocado

@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.

bartoszkubicki avatar Jun 30 '20 06:06 bartoszkubicki