You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@httpd.apache.org by Igor Galić <i....@brainsware.org> on 2010/06/01 15:56:33 UTC
mod_disk_cache: recommended defaults
Hi folks,
here's a patch to mod_disk_cache.h to set the defaults as recommended by:
http://httpd.apache.org/docs/trunk/mod/mod_disk_cache.html
This is quite a complex patch, and I'm not sure it'll pass any reviews.
Index: mod_disk_cache.h
===================================================================
--- mod_disk_cache.h (revision 949964)
+++ mod_disk_cache.h (working copy)
@@ -79,7 +79,7 @@
/* TODO: Make defaults OS specific */
#define CACHEFILE_LEN 20 /* must be less than HASH_LEN/2 */
#define DEFAULT_DIRLEVELS 2
-#define DEFAULT_DIRLENGTH 2
+#define DEFAULT_DIRLENGTH 1
#define DEFAULT_MIN_FILE_SIZE 1
#define DEFAULT_MAX_FILE_SIZE 1000000
--
Igor Galić
Tel: +43 (0) 699 122 96 338
Fax: +43(0) 1 91 333 41
Mail: i.galic@brainsware.org
URL: http://brainsware.org/
Re: mod_disk_cache: recommended defaults
Posted by Eric Covener <co...@gmail.com>.
> here's a patch to mod_disk_cache.h to set the defaults as recommended by:
> http://httpd.apache.org/docs/trunk/mod/mod_disk_cache.html
I might be crazy, but I can't spot the recommendation you refer to in the doc.
--
Eric Covener
covener@gmail.com