proxy_cache_path question

Marlon de Boer marlon at hyves.nl
Thu Apr 29 13:24:51 MSD 2010


Hi list,

I'm trying to limit the amount of data nginx caches but can't get it to
work properly.

I'm using the following line to limit the cache:

proxy_cache_path /var/tmp/nginx/cache levels=1:2 keys_zone=cache:32m
inactive=1440 max_size=32m;

Is my assumption correct that this cache cannot grow any bigger than
32Mb? What I see in my case is /var/tmp/nginx/cache grows well above
32Mb (in my test I've seen 46Mb).

Does anybody has a suggestion to get the cache limit to work?

Regards,

Marlon



More information about the nginx mailing list