nginx 配置open_cache_file 静态文件的缓存

open_file_cache max=65535 inactive=30s  缓存

最多缓存多少个文件,缓存多少时间
open_file_cache_min_uses 1配置

在30S中没有使用到这个配置的次数的话就删除
open_file_cache_valid 40s

多少时间检查一次,若是发现30s内没有用过一次的删除file

相关文章
相关标签/搜索