mirror of
https://github.com/nginx/nginx.git
synced 2025-08-06 06:46:16 +08:00
Modules compatibility: cache purge fields.
This commit is contained in:
parent
f3ece60723
commit
27c8065e7b
@ -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;
|
||||
|
||||
|
@ -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;
|
||||
};
|
||||
|
@ -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
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user