Time window proxy_cache_min_uses

nginx proxy has a directive proxy_cache_min_uses

, but I can't seem to find what the time window was using or how to set it. Because if it doesn't use any time window and just expects requests to reach some counter, then eventually all requests will be fulfilled if you keep running nginx long enough.

Or would a relatively rare request be quickly flushed out of the cache due to the last policy applied and I shouldn't worry too much about that?

thank

+3


source to share


1 answer


proxy_cache_min_uses

simply counts the number of requests after which the upstream response will be cached.



Requests are sent out of the cache when they are not accessed within the validity period or when the cache size exceeds the maximum value (using the LRU algorithm). You can set up a proxy cache using proxy_cache_path ( good document here with examples).

+3


source







All Articles