| Syntax: | open_file_cache off open_file_cache max = N [ inactive = time ] |
| Default: | off |
| Context: | http server location |
| Reference: | open_file_cache |
The directive sets the cache activity on. These information can be stored:
Options directive:
max - specifies the maximum number of entries in the cache. When the cache overflows, the least recently used(LRU) items will be removed; inactive - specifies the time when the cached item is removed, if it has not been downloaded during that time, the default is 60 seconds; off - prohibits the cache activity. Example:
open_file_cache max=1000 inactive=20s; open_file_cache_valid 30s; open_file_cache_min_uses 2; open_file_cache_errors on;