Nginx caching but shouldn't be

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@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 ##### File /etc/nginx/nginx.conf:user www-data;worker_processes 4;pid /var - Pastebin.com. If anyone has
any ideas why nginx is caching, it would be appreciated.

Doug.

Posted at Nginx Forum:

Hello!

On Mon, Jul 23, 2012 at 12:44:36PM -0400, dgarstang wrote:

I have pasted our config to ##### File /etc/nginx/nginx.conf:user www-data;worker_processes 4;pid /var - Pastebin.com. 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 D.