Mercurial > hg > nginx-site
comparison xml/en/docs/http/ngx_http_uwsgi_module.xml @ 1384:66ee77849563
Documented the use_temp_path parameter of the proxy_cache_path directive.
author | Yaroslav Zhuravlev <yar@nginx.com> |
---|---|
date | Wed, 24 Dec 2014 19:31:21 +0300 |
parents | 94cac978bda3 |
children | 8e7995bb8c6b |
comparison
equal
deleted
inserted
replaced
1383:0f63ac5c9463 | 1384:66ee77849563 |
---|---|
8 <!DOCTYPE module SYSTEM "../../../../dtd/module.dtd"> | 8 <!DOCTYPE module SYSTEM "../../../../dtd/module.dtd"> |
9 | 9 |
10 <module name="Module ngx_http_uwsgi_module" | 10 <module name="Module ngx_http_uwsgi_module" |
11 link="/en/docs/http/ngx_http_uwsgi_module.html" | 11 link="/en/docs/http/ngx_http_uwsgi_module.html" |
12 lang="en" | 12 lang="en" |
13 rev="16"> | 13 rev="17"> |
14 | 14 |
15 <section id="summary"> | 15 <section id="summary"> |
16 | 16 |
17 <para> | 17 <para> |
18 The <literal>ngx_http_uwsgi_module</literal> module allows passing | 18 The <literal>ngx_http_uwsgi_module</literal> module allows passing |
312 | 312 |
313 <directive name="uwsgi_cache_path"> | 313 <directive name="uwsgi_cache_path"> |
314 <syntax> | 314 <syntax> |
315 <value>path</value> | 315 <value>path</value> |
316 [<literal>levels</literal>=<value>levels</value>] | 316 [<literal>levels</literal>=<value>levels</value>] |
317 [<literal>use_temp_path</literal>=<literal>on</literal>|<literal>off</literal>] | |
317 <literal>keys_zone</literal>=<value>name</value>:<value>size</value> | 318 <literal>keys_zone</literal>=<value>name</value>:<value>size</value> |
318 [<literal>inactive</literal>=<value>time</value>] | 319 [<literal>inactive</literal>=<value>time</value>] |
319 [<literal>max_size</literal>=<value>size</value>] | 320 [<literal>max_size</literal>=<value>size</value>] |
320 [<literal>loader_files</literal>=<value>number</value>] | 321 [<literal>loader_files</literal>=<value>number</value>] |
321 [<literal>loader_sleep</literal>=<value>time</value>] | 322 [<literal>loader_sleep</literal>=<value>time</value>] |
346 Starting from version 0.8.9, temporary files and the cache can be put on | 347 Starting from version 0.8.9, temporary files and the cache can be put on |
347 different file systems. | 348 different file systems. |
348 However, be aware that in this case a file is copied | 349 However, be aware that in this case a file is copied |
349 across two file systems instead of the cheap renaming operation. | 350 across two file systems instead of the cheap renaming operation. |
350 It is thus recommended that for any given location both cache and a directory | 351 It is thus recommended that for any given location both cache and a directory |
351 holding temporary files, set by the <link id="uwsgi_temp_path"/> directive, | 352 holding temporary files |
352 are put on the same file system. | 353 are put on the same file system. |
354 A directory for temporary files is set based on | |
355 the <literal>use_temp_path</literal> parameter (1.7.10). | |
356 If this parameter is omitted or set to the value <literal>on</literal>, | |
357 the directory set by the <link id="uwsgi_temp_path"/> directive | |
358 for the given location will be used. | |
359 If the value is set to <literal>off</literal>, | |
360 temporary files will be put directly in the cache directory. | |
353 </para> | 361 </para> |
354 | 362 |
355 <para> | 363 <para> |
356 In addition, all active keys and information about data are stored | 364 In addition, all active keys and information about data are stored |
357 in a shared memory zone, whose <value>name</value> and <value>size</value> | 365 in a shared memory zone, whose <value>name</value> and <value>size</value> |
1453 <example> | 1461 <example> |
1454 /spool/nginx/uwsgi_temp/<emphasis>7</emphasis>/<emphasis>45</emphasis>/00000123<emphasis>457</emphasis> | 1462 /spool/nginx/uwsgi_temp/<emphasis>7</emphasis>/<emphasis>45</emphasis>/00000123<emphasis>457</emphasis> |
1455 </example> | 1463 </example> |
1456 </para> | 1464 </para> |
1457 | 1465 |
1466 <para> | |
1467 See also the <literal>use_temp_path</literal> parameter of the | |
1468 <link id="uwsgi_cache_path"/> directive. | |
1469 </para> | |
1470 | |
1458 </directive> | 1471 </directive> |
1459 | 1472 |
1460 </section> | 1473 </section> |
1461 | 1474 |
1462 </module> | 1475 </module> |