| 72 | */ |
| 73 | |
| 74 | static 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 | |
| 92 | static char *data_file(apr_pool_t *p, disk_cache_conf *conf, |
| 93 | disk_cache_object_t *dobj, const char *name) |
no test coverage detected