Mercurial > hg > nginx-site
comparison xml/en/docs/http/ngx_http_proxy_module.xml @ 1796:1d576e8d6ead
Clarified the "levels" parameter of proxy_cache_path and friends.
author | Yaroslav Zhuravlev <yar@nginx.com> |
---|---|
date | Mon, 04 Jul 2016 14:29:09 +0300 |
parents | be371be7a5c8 |
children | 621d0c682113 |
comparison
equal
deleted
inserted
replaced
1795:d4a584797f51 | 1796:1d576e8d6ead |
---|---|
8 <!DOCTYPE module SYSTEM "../../../../dtd/module.dtd"> | 8 <!DOCTYPE module SYSTEM "../../../../dtd/module.dtd"> |
9 | 9 |
10 <module name="Module ngx_http_proxy_module" | 10 <module name="Module ngx_http_proxy_module" |
11 link="/en/docs/http/ngx_http_proxy_module.html" | 11 link="/en/docs/http/ngx_http_proxy_module.html" |
12 lang="en" | 12 lang="en" |
13 rev="48"> | 13 rev="49"> |
14 | 14 |
15 <section id="summary"> | 15 <section id="summary"> |
16 | 16 |
17 <para> | 17 <para> |
18 The <literal>ngx_http_proxy_module</literal> module allows passing | 18 The <literal>ngx_http_proxy_module</literal> module allows passing |
372 Sets the path and other parameters of a cache. | 372 Sets the path and other parameters of a cache. |
373 Cache data are stored in files. | 373 Cache data are stored in files. |
374 The file name in a cache is a result of | 374 The file name in a cache is a result of |
375 applying the MD5 function to the | 375 applying the MD5 function to the |
376 <link id="proxy_cache_key">cache key</link>. | 376 <link id="proxy_cache_key">cache key</link>. |
377 The <literal>levels</literal> parameter defines hierarchy levels of a cache. | 377 The <literal>levels</literal> parameter defines hierarchy levels of a cache: |
378 from 1 to 3, each level accepts values 1 or 2. | |
378 For example, in the following configuration | 379 For example, in the following configuration |
379 <example> | 380 <example> |
380 proxy_cache_path /data/nginx/cache levels=1:2 keys_zone=one:10m; | 381 proxy_cache_path /data/nginx/cache levels=1:2 keys_zone=one:10m; |
381 </example> | 382 </example> |
382 file names in a cache will look like this: | 383 file names in a cache will look like this: |