changeset 505:837bcf62b628

Emphasized on what the "updating" parameter of the "fastcgi_cache_use_stale" directive achieves. Referenced the "fastcgi_cache_lock" directive from there, which has similar effect when populating a new cache element.
author Ruslan Ermilov <ru@nginx.com>
date Tue, 24 Apr 2012 07:24:22 +0000
parents 695f83494c19
children 657848837328
files xml/en/docs/http/ngx_http_fastcgi_module.xml xml/ru/docs/http/ngx_http_fastcgi_module.xml
diffstat 2 files changed, 22 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/xml/en/docs/http/ngx_http_fastcgi_module.xml
+++ b/xml/en/docs/http/ngx_http_fastcgi_module.xml
@@ -279,8 +279,19 @@ to use a stale cached response.
 This directives determines in which cases it is permitted.
 The directive’s parameters match those of the
 <link id="fastcgi_next_upstream"/> directive.
+</para>
+
+<para>
 Additionally, the <literal>updating</literal> parameter permits
 to use a stale cached response if it is currently being updated.
+This allows to minimize the number of accesses to FastCGI servers
+when updating cached data.
+</para>
+
+<para>
+To minimize the number of accesses to FastCGI servers when 
+populating a new cache element, the <link id="fastcgi_cache_lock"/>
+directive can be used.
 </para>
 
 </directive>
--- a/xml/ru/docs/http/ngx_http_fastcgi_module.xml
+++ b/xml/ru/docs/http/ngx_http_fastcgi_module.xml
@@ -276,9 +276,20 @@ fastcgi_cache_path /data/nginx/cache lev
 если при работе с FastCGI-сервером возникла ошибка.
 Параметры директивы совпадают с параметрами
 директивы <link id="fastcgi_next_upstream"/>.
+</para>
+
+<para>
 Кроме того, дополнительный параметр <literal>updating</literal>
 разрешает использовать устаревший закэшированный ответ,
 если на данный момент он уже обновляется.
+Это позволяет минимизировать число обращений к FastCGI-серверам
+при обновлении закэшированных данных.
+</para>
+
+<para>
+Чтобы минимизировать число обращений к FastCGI-серверам при 
+заполнении нового элемента кэша, можно воспользоваться директивой
+<link id="fastcgi_cache_lock"/>.
 </para>
 
 </directive>