aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorMaxim Dounin <mdounin@mdounin.ru>2016-09-29 18:06:01 +0300
committerMaxim Dounin <mdounin@mdounin.ru>2016-09-29 18:06:01 +0300
commit27c8065e7b713dfa44ca52616c55987a41e25788 (patch)
tree074e667e2403b289c35153d412d5bc7fcabac253 /src
parentf3ece607233776ed164f1004d682787d16a5c699 (diff)
downloadnginx-27c8065e7b713dfa44ca52616c55987a41e25788.tar.gz
nginx-27c8065e7b713dfa44ca52616c55987a41e25788.zip
Modules compatibility: cache purge fields.
Diffstat (limited to 'src')
-rw-r--r--src/core/ngx_file.h2
-rw-r--r--src/http/ngx_http_cache.h5
-rw-r--r--src/http/ngx_http_upstream.h1
3 files changed, 7 insertions, 1 deletions
diff --git a/src/core/ngx_file.h b/src/core/ngx_file.h
index a723c3d4c..4240dc074 100644
--- a/src/core/ngx_file.h
+++ b/src/core/ngx_file.h
@@ -43,6 +43,7 @@ struct ngx_file_s {
typedef time_t (*ngx_path_manager_pt) (void *data);
+typedef ngx_msec_t (*ngx_path_purger_pt) (void *data);
typedef void (*ngx_path_loader_pt) (void *data);
@@ -52,6 +53,7 @@ typedef struct {
size_t level[NGX_MAX_PATH_LEVEL];
ngx_path_manager_pt manager;
+ ngx_path_purger_pt purger;
ngx_path_loader_pt loader;
void *data;
diff --git a/src/http/ngx_http_cache.h b/src/http/ngx_http_cache.h
index 2667cbbba..4aa947fbe 100644
--- a/src/http/ngx_http_cache.h
+++ b/src/http/ngx_http_cache.h
@@ -50,7 +50,8 @@ typedef struct {
unsigned exists:1;
unsigned updating:1;
unsigned deleting:1;
- /* 11 unused bits */
+ unsigned purged:1;
+ /* 10 unused bits */
ngx_file_uniq_t uniq;
time_t expire;
@@ -85,6 +86,7 @@ struct ngx_http_cache_s {
ngx_uint_t min_uses;
ngx_uint_t error;
ngx_uint_t valid_msec;
+ ngx_uint_t vary_tag;
ngx_buf_t *buf;
@@ -109,6 +111,7 @@ struct ngx_http_cache_s {
unsigned updating:1;
unsigned exists:1;
unsigned temp_file:1;
+ unsigned purged:1;
unsigned reading:1;
unsigned secondary:1;
};
diff --git a/src/http/ngx_http_upstream.h b/src/http/ngx_http_upstream.h
index 315f85661..e079eaed3 100644
--- a/src/http/ngx_http_upstream.h
+++ b/src/http/ngx_http_upstream.h
@@ -205,6 +205,7 @@ typedef struct {
ngx_array_t *cache_valid;
ngx_array_t *cache_bypass;
+ ngx_array_t *cache_purge;
ngx_array_t *no_cache;
#endif