* This function returns OK if successful, DECLINED if no
* cached entity fits the bill.
*/
-int cache_select_url(request_rec *r, char *url)
+int cache_select(request_rec *r)
{
cache_provider_list *list;
apr_status_t rv;
apr_status_t rv;
const char *auth;
apr_uri_t uri;
- char *url;
char *path;
cache_provider_list *providers;
- cache_info *info;
cache_request_rec *cache;
cache_server_conf *conf;
apr_bucket_brigade *out;
}
uri = r->parsed_uri;
- url = r->unparsed_uri;
path = uri.path;
- info = NULL;
conf = (cache_server_conf *) ap_get_module_config(r->server->module_config,
&cache_module);
* add cache_out filter
* return OK
*/
- rv = cache_select_url(r, url);
+ rv = cache_select(r);
if (rv != OK) {
if (rv == DECLINED) {
if (!lookup) {
* restore the status into it's handle. */
r->status = cache->handle->cache_obj->info.status;
- /* recall_headers() was called in cache_select_url() */
+ /* recall_headers() was called in cache_select() */
cache->provider->recall_body(cache->handle, r->pool, bb);
/* This filter is done once it has served up its content */
*/
int cache_remove_url(cache_request_rec *cache, apr_pool_t *p);
int cache_create_entity(request_rec *r, char *url, apr_off_t size);
-int cache_select_url(request_rec *r, char *url);
+int cache_select(request_rec *r);
apr_status_t cache_generate_key_default( request_rec *r, apr_pool_t*p, char**key );
/**
* create a key for the cache based on the request record
}
/* Parse the vary header and dump those fields from the headers_in. */
- /* FIXME: Make call to the same thing cache_select_url calls to crack Vary. */
+ /* FIXME: Make call to the same thing cache_select calls to crack Vary. */
if (r->headers_in) {
apr_table_t *headers_in;