<ahref="http://www.apache.org/">Apache</a>><ahref="http://httpd.apache.org/">HTTP Server</a>><ahref="http://httpd.apache.org/docs-project/">Documentation</a>><ahref="../">Version 2.1</a>><ahref="./">Programs</a></div><divid="page-content"><divid="preamble"><h1>htcacheclean - Clean up the disk cache</h1>
<dd>Daemonize and repeat cache cleaning every <var>interval</var> minutes.
This option is mutually exclusive with the <code>-D</code>, <code>-v</code>
and <code>-r</code> options. To shutdown the daemon cleanly, just send it
a <code>SIGTERM</code> or <code>SIGINT</code>.</dd>
<dt><code>-D</code></dt>
<dd>Do a dry run and don't delete anything. This option is mutually
exclusive with the <code>-d</code> option.</dd>
<dt><code>-v</code></dt>
<dd>Be verbose and print statistics. This option is mutually exclusive
with the <code>-d</code> option.</dd>
<dt><code>-r</code></dt>
<dd>Clean thoroughly. This assumes that the Apache web server is
not running (otherwise you may get garbage in the cache). This option
is mutually exclusive with the <code>-d</code> option.</dd>
<dt><code>-n</code></dt>
<dd>Be nice. This causes slower processing in favour of other
processes. <code>htcacheclean</code> will sleep from time to time
so that (a) the disk IO will be delayed and (b) the kernel can schedule
other processes in the meantime.</dd>
<dt><code>-p<var>path</var></code></dt>
<dd>Specify <var>path</var> as the root directory of the disk cache. This
should be the same value as specified with the <codeclass="directive"><ahref="../mod/mod_disk_cache.html#cacheroot">CacheRoot</a></code> directive.</dd>
<dt><code>-l<var>limit</var></code></dt>
<dd>Specify <var>limit</var> as the total disk cache size limit. The value
is expressed in bytes by default (or attaching <code>B</code> to the
number). Attach <code>K</code> for Kbytes or <code>M</code> for
MBytes.</dd>
<dt><code>-i</code></dt>
<dd>Be intelligent and run only when there was a modification of the disk
cache. This option is only possible together with the <code>-d</code>
<pclass="apache">Copyright 1999-2004 The Apache Software Foundation.<br/>Licensed under the <ahref="http://www.apache.org/licenses/LICENSE-2.0">Apache License, Version 2.0</a>.</p>