0
我是squid緩存的新手。我正在尋找使用http url清除對象。魷魚 - 我可以使用url清除squid緩存中的緩存對象嗎?
http://$cacheuser$:[email protected]$cache$:8081/CE/Delete/<protocol>/<machine-name>/<folder>/<file>
請問這是否正常工作。魷魚通過網址支持這種清除嗎?
謝謝。
我是squid緩存的新手。我正在尋找使用http url清除對象。魷魚 - 我可以使用url清除squid緩存中的緩存對象嗎?
http://$cacheuser$:[email protected]$cache$:8081/CE/Delete/<protocol>/<machine-name>/<folder>/<file>
請問這是否正常工作。魷魚通過網址支持這種清除嗎?
謝謝。
我在緩存機器中託管了一個cgi腳本,它監聽http請求並執行squidclient。
use CGI qw(:standard);
$urltopurge=param("url");
print $urltopurge;
print header();
print "Trying to purge <b>$urltopurge</b><P>";
print "sending command <B>squidclient -v -m PURGE -h 172.24.133.181 -p 8081 $urltopurge</b> to proxy server<P><HR><b>Server Response:</b><P>";
$result = system ("C:\\squid\\bin\\squidclient.exe -v -m PURGE -p 8081 $urltopurge");
print $result;
print "<hr>";
print "purger.cgi - Praveen";