rm -rf /data/nginx/proxy_cache2<br>Doesn&#39;t that will affect nginx keep creating the cache? I mean doesn&#39;t that stop proxy cache working since directory doesn&#39;t existed?<br><br><div class="gmail_quote">On Wed, Dec 16, 2009 at 6:33 PM, Piotr Sikora <span dir="ltr">&lt;<a href="mailto:piotr.sikora@frickle.com">piotr.sikora@frickle.com</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">As far as I know there is no official way to flush / empty cache.<br>
<br>
You can either:<br>
a) purge whole cache using &quot;rm -rf /data/nginx/proxy_cache2&quot; (this will somehow invalidate all cache files, because nginx won&#39;t be able to open them anymore),<br>
b) purge selected pages using cache_purge patch [1].<br>
<br>
[1] <a href="http://labs.frickle.com/nginx_cache_purge" target="_blank">http://labs.frickle.com/nginx_cache_purge</a><br>
<br>
Best regards,<br><font color="#888888">
Piotr Sikora &lt; <a href="mailto:piotr.sikora@frickle.com" target="_blank">piotr.sikora@frickle.com</a> &gt;</font><div><div></div><div class="h5"><br>
<br>
<br>
_______________________________________________<br>
nginx mailing list<br>
<a href="mailto:nginx@nginx.org" target="_blank">nginx@nginx.org</a><br>
<a href="http://nginx.org/mailman/listinfo/nginx" target="_blank">http://nginx.org/mailman/listinfo/nginx</a><br>
</div></div></blockquote></div><br><br clear="all"><br>-- <br>Tomasen<br><a href="http://twitter.com/ShooterPlayer">http://twitter.com/ShooterPlayer</a><br><a href="http://t.sina.com.cn/Tomasen">http://t.sina.com.cn/Tomasen</a><br>