diff options
author | Igor Sysoev <igor@sysoev.ru> | 2003-11-09 23:03:38 +0300 |
---|---|---|
committer | Igor Sysoev <igor@sysoev.ru> | 2003-11-09 23:03:38 +0300 |
commit | 74e95c224ad84c6b84b5a834f49c014a441916b5 (patch) | |
tree | fea6b4e7b2706f089e462d201e90ec95f5a98fa2 /src/http/ngx_http_cache.h | |
parent | e8732b06b94ea5f8a25fa3e71cece7d93f5ac0b8 (diff) |
nginx-0.0.1-2003-11-09-23:03:38 import; separate building
Diffstat (limited to 'src/http/ngx_http_cache.h')
-rw-r--r-- | src/http/ngx_http_cache.h | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/src/http/ngx_http_cache.h b/src/http/ngx_http_cache.h index 9efbade4e..67ca22398 100644 --- a/src/http/ngx_http_cache.h +++ b/src/http/ngx_http_cache.h @@ -13,7 +13,7 @@ typedef struct { time_t date; off_t length; size_t key_len; - char key[0]; + char key[1]; } ngx_http_cache_header_t; @@ -46,11 +46,14 @@ typedef struct { } ngx_http_cache_ctx_t; -#define NGX_HTTP_CACHE_STALE 1 -#define NGX_HTTP_CACHE_AGED 2 +#define NGX_HTTP_CACHE_STALE 1 +#define NGX_HTTP_CACHE_AGED 2 +#define NGX_HTTP_CACHE_THE_SAME 3 int ngx_http_cache_get_file(ngx_http_request_t *r, ngx_http_cache_ctx_t *ctx); +int ngx_http_cache_open_file(ngx_http_request_t *r, ngx_http_cache_ctx_t *ctx, + ngx_file_uniq_t uniq); int ngx_http_cache_update_file(ngx_http_request_t *r,ngx_http_cache_ctx_t *ctx, ngx_str_t *temp_file); |