1
我已经设置了max_size = 2000m和inactive = 1440h。为什么nginx从缓存中删除文件?
尽管这个nginx保持从缓存中删除文件,尽管缓存仅为120Mb。
我的缓存文件夹下的文件都没有超过一周的时间。
任何想法为什么?
我已经设置了max_size = 2000m和inactive = 1440h。为什么nginx从缓存中删除文件?
尽管这个nginx保持从缓存中删除文件,尽管缓存仅为120Mb。
我的缓存文件夹下的文件都没有超过一周的时间。
任何想法为什么?
请阅读http://nginx.org/en/docs/http/ngx_http_proxy_module.html关于缓存的文档。
Cached data that are not accessed during the time specified by the inactive parameter get removed from the cache regardless of their freshness.
所以,我想,你的缓存存在超过60天。那段时间的一些文件永远不会被访问,并被删除。
我的缓存文件夹下的所有文件都不超过一周。会有其他原因吗? – sureshvv 2012-08-07 09:16:17
请从您的nginx.conf中发布相关片段 – 2012-08-06 20:37:13