From: André Malo Date: Sat, 6 Nov 2004 23:36:08 +0000 (+0000) Subject: document htcacheclean (more or less taken from the program itself) X-Git-Tag: 2.1.1~44 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=109d4449932407ec8bbad5373cf9f2680e16bb6e;p=apache document htcacheclean (more or less taken from the program itself) git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@105711 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/docs/manual/programs/htcacheclean.xml b/docs/manual/programs/htcacheclean.xml new file mode 100644 index 0000000000..b1b680b047 --- /dev/null +++ b/docs/manual/programs/htcacheclean.xml @@ -0,0 +1,104 @@ + + + + + + + + +Programs + +htcacheclean - Clean up the disk cache + + +

htcacheclean is used to keep the size of + mod_disk_cache's storage within a certain limit. This + tool can be either run manually or in daemon mode. When running in + daemon mode, it sleeps in the background and checks the cache directories + in regular intervals for stuff to be removed. You can stop the daemon + cleanly, when sending him a TERM or INT signal.

+
+mod_disk_cache + +
Synopsis +

htcacheclean + [ -D ] + [ -v ] + [ -r ] + [ -n ] + -ppath + -llimit

+ +

htcacheclean -b + [ -n ] + [ -i ] + -dinterval + -ppath + -llimit

+
+ +
Options +
+
-dinterval
+
Daemonize and repeat cache cleaning every interval minutes. + This option is mutually exclusive with the -D, -v + and -r options. To shutdown the daemon cleanly, just send it + a SIGTERM or SIGINT.
+ +
-D
+
Do a dry run and don't delete anything. This option is mutually + exclusive with the -d option.
+ +
-v
+
Be verbose and print statistics. This option is mutually exclusive + with the -d option.
+ +
-r
+
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 -d option.
+ +
-n
+
Be nice. This causes slower processing in favour of other + processes. htcacheclean 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.
+ +
-ppath
+
Specify path as the root directory of the disk cache. This + should be the same value as specified with the CacheRoot directive.
+ +
-llimit
+
Specify limit as the total disk cache size limit. The value + is expressed in bytes by default (or attaching B to the + number). Attach K for Kbytes or M for + MBytes.
+ +
-i
+
Be intelligent and run only when there was a modification of the disk + cache. This option is only possible together with the -d + option.
+
+
+ +
Exit Status +

htcacheclean returns a zero status ("true") if all + operations were successful, 1 otherwise.

+
+ +