Justin Erenkrantz wrote:
-
static void mkdir_structure(disk_cache_conf *conf, char *file, apr_pool_t *pool)
Another big speed-up may be to pre-make all of the directories. A simple script could use CacheRoot, |CacheDirLength|, and |CacheDirLevels to create them all. Just require that this script be ran before starting a mod_disk_cache server. Or if you wanted, you could generate/check the directories in post_config.
The Squid proxy cache requires you to create all the directories beforehand by running it with a specific switch. This save a ton of checking for and/or making directories.
Trust me, it does speed things up a bit....
|-- Brian Akins
Senior Systems Engineer
CNN Internet Technologies