Welcome! Log In Create A New Profile

Advanced

Re: what's the difference between proxy_store and proxy_cache?

Maxim Dounin
November 13, 2011 12:06PM
Hello!

On Sun, Nov 13, 2011 at 10:10:29AM -0500, zhenwei wrote:

> From Nginx official site there are two method to store remote upstream
> on local file system, "proxy_cache" and "proxy_store", the document
> describes clearly on how to configure, but still I have problem on the
> differences. Months ago I did some test over the both and found
> proxy_cache owns far better performance, and I thought proxy_cache is
> "cache in memory", recently after diving into source code, I recognized
> both are file based, so i'm not sure if it could afford high connection
> where disk probably becomes the bottleneck.

"proxy_cache" is general-purpose cache with automatic lookups
before proxy_pass, expiration support and so on. It is usually
what you need if you need caching capabilities.

"proxy_store" is just a method to store proxied files on disk. It
may be used to construct cache-like setups (usually involving
try_files and/or error_page-based fallback), though it's up to you
to implement any required logic.

Maxim Dounin

_______________________________________________
nginx mailing list
nginx@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx
Subject Author Posted

what's the difference between proxy_store and proxy_cache?

zhenwei November 13, 2011 10:10AM

Re: what's the difference between proxy_store and proxy_cache?

Maxim Dounin November 13, 2011 12:06PM

Re: what's the difference between proxy_store and proxy_cache?

Valentin V. Bartenev November 13, 2011 01:08PM

Re: what's the difference between proxy_store and proxy_cache?

zhenwei November 13, 2011 08:37PM

Re: what's the difference between proxy_store and proxy_cache?

Valentin V. Bartenev November 14, 2011 12:50AM

Re: what's the difference between proxy_store and proxy_cache?

zhenwei November 15, 2011 12:37AM

Re: what's the difference between proxy_store and proxy_cache?

Brian Akins November 15, 2011 06:10PM

Re: what's the difference between proxy_store and proxy_cache?

zhenwei November 16, 2011 03:40AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 282
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready