这条命令可以清除所有www.tingtao.org的缓存内容

varnishadm -T 127.0.0.1:6082 -S /etc/varnish/secret ban "req.http.host == www.tingtao.org"

只清除www.tingtao.org的首页:

varnishadm -T 127.0.0.1:6082 -S /etc/varnish/secret ban "req.http.host == www.tingtao.org && req.url == /"

清除www.tingtao.org/archives/目录下所有内容:

varnishadm -T 127.0.0.1:6082 -S /etc/varnish/secret ban "req.http.host == www.tingtao.org && req.url ~ /archives/*"

清除varnish服务器所有缓存:

varnishadm -T 127.0.0.1:6082 -S /etc/varnish/secret ban "req.url ~ /*"

 

 

发表评论

邮箱地址不会被公开。 必填项已用*标注

9 + 1 =