MCPcopy Create free account
hub / github.com/apache/httpd / cache_generate_key_default

Function cache_generate_key_default

modules/cache/cache_storage.c:665–679  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

663}
664
665apr_status_t cache_generate_key_default(request_rec *r, apr_pool_t* p,
666 const char **key)
667{
668 /* In early processing (quick-handler, forward proxy), we want the initial
669 * query-string from r->parsed_uri, since any change before CACHE_SAVE
670 * shouldn't modify the key. Otherwise we want the actual query-string.
671 */
672 const char *path = r->uri;
673 const char *query = r->args;
674 if (cache_use_early_url(r)) {
675 path = r->parsed_uri.path;
676 query = r->parsed_uri.query;
677 }
678 return cache_canonicalise_key(r, p, path, query, &r->parsed_uri, key);
679}
680
681/*
682 * Invalidate a specific URL entity in all caches

Callers

nothing calls this directly

Calls 2

cache_use_early_urlFunction · 0.85
cache_canonicalise_keyFunction · 0.85

Tested by

no test coverage detected