Welcome! Log In Create A New Profile

Advanced

Make the cache lock sleep configurable

Posted by royteeuwen 
Make the cache lock sleep configurable
July 28, 2022 09:17AM
When using the nginx proxy cache, you have the option to set the cache lock, see

http://nginx.org/en/docs/http/ngx_http_proxy_module.html#proxy_cache_lock

The downside of this is, that once the cache is locked, there is a polling for subsequent requests to wait for 500ms before checking if the cache lock has expired. There is a "workaround" by just setting the cache lock timeout on something lower, but this is not the ideal solution and beats the purpose of the cache lock. We would like to decrease the cache lock sleep, preferable by making this a configurable setting

Is there any reason against this? Would it be feasible to make this a configurable option?
Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 49
Record Number of Users: 6 on February 13, 2018
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready