|
Apache HTTPD
|
Functions | |
| int | cache_remove_url (cache_request_rec *cache, request_rec *r) |
| int | cache_create_entity (cache_request_rec *cache, request_rec *r, apr_off_t size, apr_bucket_brigade *in) |
| int | cache_select (cache_request_rec *cache, request_rec *r) |
| int | cache_invalidate (cache_request_rec *cache, request_rec *r) |
| apr_status_t | cache_generate_key_default (request_rec *r, apr_pool_t *p, const char **key) |
| void | cache_accept_headers (cache_handle_t *h, request_rec *r, apr_table_t *top, apr_table_t *bottom, int revalidation) |
| void cache_accept_headers | ( | cache_handle_t * | h, |
| request_rec * | r, | ||
| apr_table_t * | top, | ||
| apr_table_t * | bottom, | ||
| int | revalidation | ||
| ) |
Merge in cached headers into the response
| h | cache_handle_t |
| r | request_rec |
| top | headers to be applied |
| bottom | headers to be overwritten |
| revalidation | true if revalidation is taking place |
Take two sets of headers, sandwich them together, and apply the result to r->headers_out.
To complicate this, a header may be duplicated in either table. Should a header exist in the top table, all matching headers will be removed from the bottom table before the headers are combined. The Warning headers are handled specially. Warnings are added rather than being replaced, while in the case of revalidation 1xx Warnings are stripped.
The Content-Type and Last-Modified headers are then re-parsed and inserted into the request.
Definition at line 161 of file cache_storage.c.
| int cache_create_entity | ( | cache_request_rec * | cache, |
| request_rec * | r, | ||
| apr_off_t | size, | ||
| apr_bucket_brigade * | in | ||
| ) |
< Module has handled this stage.
< Module has handled this stage.
< Module declines to handle
< Module declines to handle
Definition at line 72 of file cache_storage.c.
| apr_status_t cache_generate_key_default | ( | request_rec * | r, |
| apr_pool_t * | p, | ||
| const char ** | key | ||
| ) |
Definition at line 665 of file cache_storage.c.
| int cache_invalidate | ( | cache_request_rec * | cache, |
| request_rec * | r | ||
| ) |
invalidate a specific URL entity in all caches
All cached entities for this URL are removed, usually in response to a POST/PUT or DELETE.
This function returns OK if at least one entity was found and removed, and DECLINED if no cached entities were removed.
| cache | cache_request_rec |
| r | request_rec |
< Module declines to handle
< Module declines to handle
< Module declines to handle
< Module has handled this stage.
< Module has handled this stage.
< Module has handled this stage.
< Module has handled this stage.
< Module has handled this stage.
< Module has handled this stage.
Definition at line 690 of file cache_storage.c.
| int cache_remove_url | ( | cache_request_rec * | cache, |
| request_rec * | r | ||
| ) |
< Module has handled this stage.
< Module has handled this stage.
Definition at line 34 of file cache_storage.c.
| int cache_select | ( | cache_request_rec * | cache, |
| request_rec * | r | ||
| ) |
< Module declines to handle
< Module declines to handle
< Module declines to handle
< Module has handled this stage.
< Module declines to handle
< Module has handled this stage.
< Module declines to handle
< Module declines to handle
Definition at line 214 of file cache_storage.c.