Mercurial > hg > nginx-site
comparison xml/en/docs/http/ngx_http_fastcgi_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 | 0dcf07c393b6 |
children | 86732337c730 |
comparison
equal
deleted
inserted
replaced
301:ced6daa61e83 | 302:df728215db07 |
---|---|
123 <para> | 123 <para> |
124 Defines a key for caching, for example | 124 Defines a key for caching, for example |
125 <example> | 125 <example> |
126 fastcgi_cache_key localhost:9000$request_uri; | 126 fastcgi_cache_key localhost:9000$request_uri; |
127 </example> | 127 </example> |
128 </para> | |
129 | |
130 </directive> | |
131 | |
132 | |
133 <directive name="fastcgi_cache_lock"> | |
134 <syntax><literal>on</literal> | <literal>off</literal></syntax> | |
135 <default>off</default> | |
136 <context>http</context> | |
137 <context>server</context> | |
138 <context>location</context> | |
139 | |
140 <para> | |
141 When enabled, only one request at a time will be allowed to populate | |
142 a new cache element identified according to the <link id="fastcgi_cache_key"/> | |
143 directive by passing a request to a FastCGI server. | |
144 Other requests of the same cache element will either wait | |
145 for a response to appear in the cache, or the cache lock for | |
146 this element to be released, up to the time set by the | |
147 <link id="fastcgi_cache_lock_timeout"/> directive. | |
148 </para> | |
149 | |
150 </directive> | |
151 | |
152 | |
153 <directive name="fastcgi_cache_lock_timeout"> | |
154 <syntax><value>time</value></syntax> | |
155 <default>5s</default> | |
156 <context>http</context> | |
157 <context>server</context> | |
158 <context>location</context> | |
159 | |
160 <para> | |
161 Sets a timeout for <link id="fastcgi_cache_lock"/>. | |
128 </para> | 162 </para> |
129 | 163 |
130 </directive> | 164 </directive> |
131 | 165 |
132 | 166 |