* 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" */
| 1449 | * filename = "/key % prime1 /key %prime2/key %prime3" |
| 1450 | */ |
| 1451 | static 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 | } |
| 1464 | static const char |
| 1465 | *set_cache_dirlength(cmd_parms *parms, void *in_struct_ptr, const char *arg) |
| 1466 | { |
nothing calls this directly
no test coverage detected