what is the correct way to flush/delete proxy_cache without restartnginx?

tOmasEn tomasen at gmail.com
Fri Dec 18 11:39:48 MSK 2009


rm -rf /data/nginx/proxy_cache2
Doesn't that will affect nginx keep creating the cache? I mean doesn't that
stop proxy cache working since directory doesn't existed?

On Wed, Dec 16, 2009 at 6:33 PM, Piotr Sikora <piotr.sikora at frickle.com>wrote:

> As far as I know there is no official way to flush / empty cache.
>
> You can either:
> a) purge whole cache using "rm -rf /data/nginx/proxy_cache2" (this will
> somehow invalidate all cache files, because nginx won't be able to open them
> anymore),
> b) purge selected pages using cache_purge patch [1].
>
> [1] http://labs.frickle.com/nginx_cache_purge
>
> Best regards,
> Piotr Sikora < piotr.sikora at frickle.com >
>
>
>
> _______________________________________________
> nginx mailing list
> nginx at nginx.org
> http://nginx.org/mailman/listinfo/nginx
>



-- 
Tomasen
http://twitter.com/ShooterPlayer
http://t.sina.com.cn/Tomasen
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://nginx.org/pipermail/nginx/attachments/20091218/6a5a8ad2/attachment.html>


More information about the nginx mailing list