2014-11-27 2:25 GMT+01:00 Thiago Paulino <[email protected]>: > Hello Guys, > > I am using varnish 4.0.1 on a debian wheezy. > > I have one process deploy where I run this command to Purge all itens > cached on my varnish but did not work > > command : > > curl -s -o -S -X PURGE -H "x-forwarded-for:127.0.0.1,ip1,ip2,ip3" > http://site.com/* > > curl -s -o -S -X PURGE -H "x-forwarded-for:127.0.0.1,ip1,ip2,ip3" > http://site.com/ > > > If I run this command to purge a specific object it's works. Anyone have > ideias about this problem or the correct way to purge all itens cached ? > > curl -s -o -S -X PURGE -H > "x-forwarded-for:127.0.0.1,177.52.130.199,177.52.130.207,177.52.130.208" > http://site.com.br/file.gif >
Hello. Purge doesn't work in this way, if you want to remove more than one url you need to use bans: https://www.varnish-cache.org/docs/4.0/users-guide/purging.html kind regards.
_______________________________________________ varnish-misc mailing list [email protected] https://www.varnish-cache.org/lists/mailman/listinfo/varnish-misc
