Nginx caching... but shouldn't be.
Maxim Dounin
mdounin at mdounin.ru
Mon Jul 23 16:56:38 UTC 2012
Hello!
On Mon, Jul 23, 2012 at 12:44:36PM -0400, dgarstang wrote:
> We have nginx running, and for reasons I don't understand, it seems to
> be caching content to /var/lib/nginx/proxy. I can't even find this
> setting in the configuration anywhere, i.e. the following returns
> nothing:
>
> root at lb01:/etc/nginx# find /etc/nginx | xargs grep "/var/lib/nginx"
>
> We have the following set:
> proxy_no_cache 1;
> proxy_cache_bypass 1;
>
> I have pasted our config to http://pastebin.com/w7E0trG6. If anyone has
> any ideas why nginx is caching, it would be appreciated.
I would rather suggest it's proxy temporary files, not cache. If
you don't want nginx to buffer responses to disk, use
proxy_max_temp_file_size directive. See here for details:
http://nginx.org/r/proxy_temp_path
http://nginx.org/r/proxy_max_temp_file_size
Maxim Dounin
More information about the nginx
mailing list