<tr><th><a href="directive-dict.html#Module">Module:</a></th><td>mod_disk_cache</td></tr>
</table>
<p>The <code class="directive">CacheDirLength</code> directive sets the number
- of characters for each subdirectory name in the cache hierarchy.</p>
+ of characters for each subdirectory name in the cache hierarchy. It can
+ be used in conjunction with <code class="directive">CacheDirLevels</code> to
+ determine the approximate structure of your cache hierarchy.</p>
+ <p>A high value for <code class="directive">CacheDirLength</code> combined
+ with a low value for <code class="directive">CacheDirLevels</code> will result in
+ a relatively flat hierarchy, with a large number of subdirectories at each
+ level.</p>
<div class="note">
<p>The result of <code class="directive"><a href="#cachedirlevels">CacheDirLevels</a></code>* <code class="directive">CacheDirLength</code>
must not be higher than 20.</p>
</div>
- <div class="example"><p><code>
- CacheDirLength 4
- </code></p></div>
</div>
<div class="top"><a href="#page-header"><img alt="top" src="../images/up.gif" /></a></div>
<tr><th><a href="directive-dict.html#Description">Description:</a></th><td>The number of levels of subdirectories in the
cache.</td></tr>
<tr><th><a href="directive-dict.html#Syntax">Syntax:</a></th><td><code>CacheDirLevels <var>levels</var></code></td></tr>
-<tr><th><a href="directive-dict.html#Default">Default:</a></th><td><code>CacheDirLevels 3</code></td></tr>
+<tr><th><a href="directive-dict.html#Default">Default:</a></th><td><code>CacheDirLevels 2</code></td></tr>
<tr><th><a href="directive-dict.html#Context">Context:</a></th><td>server config, virtual host</td></tr>
<tr><th><a href="directive-dict.html#Status">Status:</a></th><td>Extension</td></tr>
<tr><th><a href="directive-dict.html#Module">Module:</a></th><td>mod_disk_cache</td></tr>
<p>The <code class="directive">CacheDirLevels</code> directive sets the number
of subdirectory levels in the cache. Cached data will be saved this
many directory levels below the <code class="directive"><a href="#cacheroot">CacheRoot</a></code> directory.</p>
+ <p>A high value for <code class="directive">CacheDirLevels</code> combined
+ with a low value for <code class="directive">CacheDirLength</code> will result in
+ a relatively deep hierarchy, with a small number of subdirectories at each
+ level.</p>
<div class="note">
<p>The result of <code class="directive">CacheDirLevels</code>*
not be higher than 20.</p>
</div>
- <div class="example"><p><code>
- CacheDirLevels 5
- </code></p></div>
</div>
<div class="top"><a href="#page-header"><img alt="top" src="../images/up.gif" /></a></div>
<description>The number of levels of subdirectories in the
cache.</description>
<syntax>CacheDirLevels <var>levels</var></syntax>
-<default>CacheDirLevels 3</default>
+<default>CacheDirLevels 2</default>
<contextlist><context>server config</context><context>virtual host</context>
</contextlist>
of subdirectory levels in the cache. Cached data will be saved this
many directory levels below the <directive module="mod_disk_cache"
>CacheRoot</directive> directory.</p>
+ <p>A high value for <directive>CacheDirLevels</directive> combined
+ with a low value for <directive>CacheDirLength</directive> will result in
+ a relatively deep hierarchy, with a small number of subdirectories at each
+ level.</p>
<note>
<p>The result of <directive>CacheDirLevels</directive>*
not be higher than 20.</p>
</note>
- <example>
- CacheDirLevels 5
- </example>
</usage>
</directivesynopsis>
<usage>
<p>The <directive>CacheDirLength</directive> directive sets the number
- of characters for each subdirectory name in the cache hierarchy.</p>
+ of characters for each subdirectory name in the cache hierarchy. It can
+ be used in conjunction with <directive>CacheDirLevels</directive> to
+ determine the approximate structure of your cache hierarchy.</p>
+ <p>A high value for <directive>CacheDirLength</directive> combined
+ with a low value for <directive>CacheDirLevels</directive> will result in
+ a relatively flat hierarchy, with a large number of subdirectories at each
+ level.</p>
<note>
<p>The result of <directive module="mod_disk_cache"
must not be higher than 20.</p>
</note>
- <example>
- CacheDirLength 4
- </example>
</usage>
</directivesynopsis>