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

Function set_cache_dirlevels

modules/cache/mod_cache_disk.c:1451–1463  ·  view source on GitHub ↗

* Consider eliminating the next two directives in favor of * Ian's prime number hash... * key = hash_fn( r->uri) * filename = "/key % prime1 /key %prime2/key %prime3" */

Source from the content-addressed store, hash-verified

1449 * filename = "/key % prime1 /key %prime2/key %prime3"
1450 */
1451static const char
1452*set_cache_dirlevels(cmd_parms *parms, void *in_struct_ptr, const char *arg)
1453{
1454 disk_cache_conf *conf = ap_get_module_config(parms->server->module_config,
1455 &cache_disk_module);
1456 int val = atoi(arg);
1457 if (val < 1)
1458 return "CacheDirLevels value must be an integer greater than 0";
1459 if (val * conf->dirlength > CACHEFILE_LEN)
1460 return "CacheDirLevels*CacheDirLength value must not be higher than 20";
1461 conf->dirlevels = val;
1462 return NULL;
1463}
1464static const char
1465*set_cache_dirlength(cmd_parms *parms, void *in_struct_ptr, const char *arg)
1466{

Callers

nothing calls this directly

Calls 1

ap_get_module_configFunction · 0.85

Tested by

no test coverage detected