Using cron to purge cache

Nuno Neves nfn at gmx.com
Fri Mar 25 10:47:33 CET 2011


Hello,

 I have a file named varnish-purge with this content that it's executed daily by cron, but the objects remain in the cache, even when I run it manually.
 --------------------------------------------------------------------------------------------

 #!/bin/sh

 /usr/bin/varnishadm -S /etc/varnish/secret -T 0.0.0.0:6082 "url.purge .*"
 --------------------------------------------------------------------------------------------

 The cron file is:

 -----------------------------------
 #!/bin/sh
 /usr/local/bin/varnish-purge -----------------------------------

 I alread used:

 /usr/bin/varnishadm -S /etc/varnish/secret -T 0.0.0.0:6082 url.purge '.*'

 and 

 /usr/bin/varnishadm -S /etc/varnish/secret -T 0.0.0.0:6082 url.purge .

 without succes. The only way to purge the cache is restarting varnish.
 I'm using vanish 2.1.5 from http://repo.varnish-cache.org http://repo.varnish-cache.org/debian/GPG-key.txt 

 Any guidance will be apreciated.

 Thanks

 Nuno
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.varnish-cache.org/lists/pipermail/varnish-misc/attachments/20110325/cf8c902e/attachment.html>


More information about the varnish-misc mailing list