]> git.kaiwu.me - nginx.git/commit
Cache: introduced min_free cache clearing.
authorMaxim Dounin <mdounin@mdounin.ru>
Mon, 22 Jun 2020 15:03:00 +0000 (18:03 +0300)
committerMaxim Dounin <mdounin@mdounin.ru>
Mon, 22 Jun 2020 15:03:00 +0000 (18:03 +0300)
commit0a683fdd9313b9796bf39442fd117beaa63a7157
treeb378f8587fd10fd8fb2396892c65cfcfc7de3d42
parent6bb43361962ba9cb9d62bf3116bb9f88f8b39260
Cache: introduced min_free cache clearing.

Clearing cache based on free space left on a file system is
expected to allow better disk utilization in some cases, notably
when disk space might be also used for something other than nginx
cache (including nginx own temporary files) and while loading
cache (when cache size might be inaccurate for a while, effectively
disabling max_size cache clearing).

Based on a patch by Adam Bambuch.
src/http/ngx_http_cache.h
src/http/ngx_http_file_cache.c
src/os/unix/ngx_files.c
src/os/unix/ngx_files.h
src/os/win32/ngx_files.c
src/os/win32/ngx_files.h