Welcome! Log In Create A New Profile


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


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?
Re: Make the cache lock sleep configurable
October 07, 2022 03:17AM
+ follow topic
Re: Make the cache lock sleep configurable
April 23, 2024 09:49AM
We had a similar need, so we patched Nginx with configurable lock sleep time. I also submitted a patch: https://mailman.nginx.org/pipermail/nginx-devel/2024-March/XZ77NIM4V27W44Z75PRHCR6OA56SYOFT.html
Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 251
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 500 on July 15, 2024
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready