February 2018
Beginner to intermediate
348 pages
9h 40m
English
Context: http, server, and location
By default, entries in the open_file_cache are cleared after a period of inactivity (60 seconds, by default). If there is activity though, you can prevent Nginx from removing the cache entry. This directive defines the number of times an entry must be accessed in order to be eligible for protection:
open_file_cache_min_uses 3;
If the cache entry is accessed more than three times, it becomes permanently active and is not removed until Nginx decides to clear out older entries to free up some space.
Syntax: Numeric value
Default value: 1
Read now
Unlock full access