From: Paul J. Reder
Date: Thu, 24 Oct 2002 18:56:18 +0000 (+0000)
Subject: Change the CacheRoot processing to check for a required
X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=aa5981869676d684a943fef0ac2bfbdb1a7ca525;p=apache
Change the CacheRoot processing to check for a required
value at config time. This saves a lot of wasted processing
if the mod_disk_cache module is loaded but no CacheRoot
was provided. This fix also adds code to log an error
and avoid useless pallocs and procesing when the computed
cache file name cannot be opened. This also updates the
docs accordingly. [Paul J. Reder]
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@97291 13f79535-47bb-0310-9956-ffa450edef68
---
diff --git a/docs/manual/mod/mod_disk_cache.xml b/docs/manual/mod/mod_disk_cache.xml
index 5c415f7f51..66e7555c99 100644
--- a/docs/manual/mod/mod_disk_cache.xml
+++ b/docs/manual/mod/mod_disk_cache.xml
@@ -24,14 +24,19 @@ This module is experimental. Documentation is still under development...
CacheRoot
-The directory to store cache files
+The directory root under which cache files are stored
CacheRoot directory
none
server config
The CacheRoot directive defines the name of the directory
- on the disk to contain cache files. What is happening if not set ?
+ on the disk to contain cache files. If the mod_disk_cache module has been loaded
+ or compiled in to the Apache server, this directive must be defined. Failing to
+ provide a value for CacheRoot will result in a configuration
+ file processing error. The CacheDirLevels and
+ CacheDirLength directives define the structure of the directories
+ under the specified root directory.
CacheRoot c:/cacheroot
@@ -47,14 +52,14 @@ This module is experimental. Documentation is still under development...
server config
- The MCacheSize directive sets the desired disk space
+
The CacheSize directive sets the desired disk space
usage of the cache, in KBytes (1024-byte units). This directive does not put a
hard limit on the size of the cache. The garbage collector will delete files
until the usage is at or below the settings. Always use a value that is lower
than the available disk space.
- MCacheSize 5000000
+ CacheSize 5000000
@@ -256,4 +261,4 @@ The CacheGcMemUsage directive is currently not i
-
\ No newline at end of file
+