S
S
Sergey Pugovkin2020-08-05 16:33:39
Nginx
Sergey Pugovkin, 2020-08-05 16:33:39

How do two slightly opposite directives work in nginx?

nginx.org/ru/docs/http/ngx_http_fastcgi_module.htm...

If enabled, only one request at a time will be allowed to populate the new cache entry identified by the fastcgi_cache_key directive, passing the request to the FastCGI server. Other requests for the same element will either wait for the response to appear in the cache, or for the lock on this element to be released.


nginx.org/ru/docs/http/ngx_http_fastcgi_module.htm...
In addition, the additional parameter updating allows the use of an outdated cached response if it is already being updated at the moment.


What happens when you use both fastcgi_cache_lock and fastcgi_cache_use_stale_updating at the same time?
Let's say the first request updates the old cache. Does the second request wait for it to be updated, or does it immediately get the old cache?

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question