MCPcopy Index your code
hub / github.com/apache/httpd / header_file

Function header_file

modules/cache/mod_cache_disk.c:74–90  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

72 */
73
74static char *header_file(apr_pool_t *p, disk_cache_conf *conf,
75 disk_cache_object_t *dobj, const char *name)
76{
77 if (!dobj->hashfile) {
78 dobj->hashfile = ap_cache_generate_name(p, conf->dirlevels,
79 conf->dirlength, name);
80 }
81
82 if (dobj->prefix) {
83 return apr_pstrcat(p, dobj->prefix, CACHE_VDIR_SUFFIX "/",
84 dobj->hashfile, CACHE_HEADER_SUFFIX, NULL);
85 }
86 else {
87 return apr_pstrcat(p, conf->cache_root, "/", dobj->hashfile,
88 CACHE_HEADER_SUFFIX, NULL);
89 }
90}
91
92static char *data_file(apr_pool_t *p, disk_cache_conf *conf,
93 disk_cache_object_t *dobj, const char *name)

Callers 3

create_entityFunction · 0.85
open_entityFunction · 0.85
write_headersFunction · 0.85

Calls 1

ap_cache_generate_nameFunction · 0.85

Tested by

no test coverage detected