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.ga...@brainsware.org
URL: http://brainsware.org/

Reply via email to