HTTP directives

open_file_cache_valid directive (HTTP)

Choose when file-cache information is rechecked; test file replacement and deletion in a deployment lab. Context: http, server, location. Documented default: 60s. Version: Introduction not established. OSS documentation; check target build. Example is a partial http configuration fragment; use a disposable lab, not a production tuning prescription.

Formal Syntax & Structure

nginx syntaxnginx
open_file_cache_valid time;

Parameters & Attributes

NameTypeDescription
timedurationValue for open file cache valid.

Working Example

Example Snippetnginx
open_file_cache_valid 15s;
Nginx Reference