Mercurial > hg > nginx
comparison src/http/ngx_http_cache.h @ 7670:ccb5ff87ab3e
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.
author | Maxim Dounin <mdounin@mdounin.ru> |
---|---|
date | Mon, 22 Jun 2020 18:03:00 +0300 |
parents | 609daeb3b48b |
children | 847fd35f94de |
comparison
equal
deleted
inserted
replaced
7669:52b34c3f89b4 | 7670:ccb5ff87ab3e |
---|---|
158 ngx_http_file_cache_sh_t *sh; | 158 ngx_http_file_cache_sh_t *sh; |
159 ngx_slab_pool_t *shpool; | 159 ngx_slab_pool_t *shpool; |
160 | 160 |
161 ngx_path_t *path; | 161 ngx_path_t *path; |
162 | 162 |
163 off_t min_free; | |
163 off_t max_size; | 164 off_t max_size; |
164 size_t bsize; | 165 size_t bsize; |
165 | 166 |
166 time_t inactive; | 167 time_t inactive; |
167 | 168 |