Closed (fixed)
Project:
Varnish
Version:
6.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
22 Nov 2010 at 18:35 UTC
Updated:
26 Mar 2011 at 00:41 UTC
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.
| Comment | File | Size | Author |
|---|---|---|---|
| varnish-drush-commands.patch | 1.29 KB | fabsor |
Comments
Comment #1
dixon_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.
Comment #2
benverhees commentedUsing two varnish servers and multiple hosts to purge, this patch works great! Setting this to RTBC.
Comment #3
joshk commentedVery nice. I have been emaning to add this. Will integrate as part of this weeks D7 push. :)
Comment #4
chrishaslam commentedTested here also and drush vpa performs
req.url ~ ^/as expectedNice!
Comment #5
fabsor commentedCommited!