diff src/http/ngx_http_cache.h @ 5736:2fe1967f8854

Cache: version in cache files. This allows to change the structure of cache files without spamming logs with false alerts.
author Maxim Dounin <mdounin@mdounin.ru>
date Thu, 26 Jun 2014 02:27:21 +0400
parents 43ccaf8e8728
children 44b9ab7752e3
line wrap: on
line diff
--- 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;