diff options
| author | Maxim Dounin <mdounin@mdounin.ru> | 2014-06-26 02:27:21 +0400 |
|---|---|---|
| committer | Maxim Dounin <mdounin@mdounin.ru> | 2014-06-26 02:27:21 +0400 |
| commit | c2e49a4196749676ccea31ae645c5d3eb4408520 (patch) | |
| tree | 5cdf9fa207f1d3a6594a3e4a3c73f2de04a3e211 /src/http/ngx_http_cache.h | |
| parent | 8f9fb9570efceb1ff2376289628cf03b8e4bea76 (diff) | |
| download | nginx-c2e49a4196749676ccea31ae645c5d3eb4408520.tar.gz nginx-c2e49a4196749676ccea31ae645c5d3eb4408520.tar.bz2 | |
Cache: version in cache files.
This allows to change the structure of cache files without spamming logs
with false alerts.
Diffstat (limited to '')
| -rw-r--r-- | src/http/ngx_http_cache.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/http/ngx_http_cache.h b/src/http/ngx_http_cache.h index 193a35322..1a3117adb 100644 --- a/src/http/ngx_http_cache.h +++ b/src/http/ngx_http_cache.h @@ -25,6 +25,8 @@ #define NGX_HTTP_CACHE_KEY_LEN 16 +#define NGX_HTTP_CACHE_VERSION 1 + typedef struct { ngx_uint_t status; @@ -97,6 +99,7 @@ struct ngx_http_cache_s { typedef struct { + ngx_uint_t version; time_t valid_sec; time_t last_modified; time_t date; |
