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