Hi!

Sometimes when you roll out updates to your servers you want to clear out your varnish cache so that the new changes can be seen. This can be done by using the Varnish terminal but that's a hassle, especially if you have more than one Varnish server.

This patch adds drush integration, so that you can use the settings saved in Drupal to purge your Varnish cache. It has two commands:
* varnish-purge-all which purges the whole varnish cache
* varnish-purge which lets you specify paths to purge.

CommentFileSizeAuthor
varnish-drush-commands.patch1.29 KBfabsor

Comments

dixon_’s picture

Wow! Very simple patch with huge win! Nice that we can reuse internal API callbacks.

I've successfully tested it on one of our environments at NodeOne. We are using two varnish servers for that project and it seems to pick up both.

I'm waiting for someone more, before RTBC this.

benverhees’s picture

Status: Needs review » Reviewed & tested by the community

Using two varnish servers and multiple hosts to purge, this patch works great! Setting this to RTBC.

joshk’s picture

Very nice. I have been emaning to add this. Will integrate as part of this weeks D7 push. :)

chrishaslam’s picture

Tested here also and drush vpa performs req.url ~ ^/ as expected

Nice!

fabsor’s picture

Status: Reviewed & tested by the community » Fixed

Commited!

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.