Directive Reference
[ 224 ]
Directive Explanation Context/Default
fastcgi_cache_lock Enabling this directive will
prevent multiple requests from
making an entry into the same
cache key.
Valid contexts: http,
server, location
Default value: off
fastcgi_cache_lock_
timeout
The length of time a request will
wait for an entry to appear in the
cache or for the fastcgi_cache_
lock to be released.
Valid contexts: http,
server, location
Default value: 5s
fastcgi_cache_min_
uses
The number of requests for a
certain key needed before a
response is cached.
Valid contexts: http,
server, location
Default value: 1
fastcgi_cache_path Refer to the FastCGI directives
table in the Using NGINX with
PHP-FPM section in Chapter 6, The
NGINX HTTP Server.
Valid context: http
Default value: -
fastcgi_cache_use_
stale
The cases under which it is
acceptable to serve stale cached
data when an error occurs while
accessing the FastCGI server. The
updating parameter indicates
the case when fresh data are being
loaded.
Valid contexts: http,
server, location
Default value: off
fastcgi_cache_valid Indicates the length of time for
which a cached response with
response code 200, 301, or 302 is
valid. If an optional response code
is given before the time parameter,
that time is only for that response
code. The special parameter any
indicates that any response code
should be cached for that length
of time.
Valid contexts: http,
server, location
Default value: -
fastcgi_connect_
timeout
The maximum amount of time
NGINX will wait for its connection
to be accepted when making a
request to a FastCGI server.
Valid contexts: http,
server, location
Default value: 60s
fastcgi_hide_header A list of header fields that should
not be passed on to the client.
Valid contexts: http,
server, location
Default value: -