Mercurial > hg > nginx-site
diff xml/en/docs/http/ngx_http_proxy_module.xml @ 302:df728215db07
Documented "proxy_cache_lock", "proxy_cache_lock_timeout",
"fastcgi_cache_lock", and "fastcgi_cache_lock_timeout".
author | Ruslan Ermilov <ru@nginx.com> |
---|---|
date | Thu, 29 Dec 2011 15:36:38 +0000 |
parents | 94c8df379088 |
children | 86732337c730 |
line wrap: on
line diff
--- a/xml/en/docs/http/ngx_http_proxy_module.xml Thu Dec 29 09:10:56 2011 +0000 +++ b/xml/en/docs/http/ngx_http_proxy_module.xml Thu Dec 29 15:36:38 2011 +0000 @@ -158,6 +158,40 @@ </directive> +<directive name="proxy_cache_lock"> +<syntax><literal>on</literal> | <literal>off</literal></syntax> +<default>off</default> +<context>http</context> +<context>server</context> +<context>location</context> + +<para> +When enabled, only one request at a time will be allowed to populate +a new cache element identified according to the <link id="proxy_cache_key"/> +directive by passing a request to a proxied server. +Other requests of the same cache element will either wait +for a response to appear in the cache, or the cache lock for +this element to be released, up to the time set by the +<link id="proxy_cache_lock_timeout"/> directive. +</para> + +</directive> + + +<directive name="proxy_cache_lock_timeout"> +<syntax><value>time</value></syntax> +<default>5s</default> +<context>http</context> +<context>server</context> +<context>location</context> + +<para> +Sets a timeout for <link id="proxy_cache_lock"/>. +</para> + +</directive> + + <directive name="proxy_cache_min_uses"> <syntax><value>number</value></syntax> <default>1</default>