deleting from cache by disk usage alone...

spamjoshua nginx-forum at nginx.us
Thu Oct 15 07:46:16 MSD 2009


I have a proxy_cache_path :

proxy_cache_path /local/cache/nginx levels=1:2 keys_zone=cache:10m inactive=9d max_size=50G;

and also proxy_cache_valid statements:

proxy_cache_valid 200 9d;

I am wondering, however, if there is a way to have:

inactive=infinity in the proxy_cache_path and proxy_cache_valid 200 = infinity, so that nginx only deletes fcached files based on max_size.

If not, what are the MAX settings for:

inactive and proxy_cache_valid

?

Thank you,
Joshua

Posted at Nginx Forum: http://forum.nginx.org/read.php?2,13795,13795#msg-13795






More information about the nginx mailing list