Apache HTTPD
Functions
Cache Storage Functions

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)
 

Detailed Description

Function Documentation

◆ cache_accept_headers()

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

Parameters
hcache_handle_t
rrequest_rec
topheaders to be applied
bottomheaders to be overwritten
revalidationtrue 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.

◆ cache_create_entity()

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.

◆ cache_generate_key_default()

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.

◆ cache_invalidate()

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.

Parameters
cachecache_request_rec
rrequest_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.

◆ cache_remove_url()

int cache_remove_url ( cache_request_rec cache,
request_rec r 
)

cache_storage.c

< Module has handled this stage.

< Module has handled this stage.

Definition at line 34 of file cache_storage.c.

◆ cache_select()

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.