Apache HTTP Server Version 2.2
htcacheclean
is used to keep the size of
mod_disk_cache
's storage within a certain limit. This
tool can run either manually or in daemon mode. When running in
daemon mode, it sleeps in the background and checks the cache directories
at regular intervals for cached content to be removed. You can stop the daemon
cleanly by sending it a TERM or INT signal.
htcacheclean
[ -D ]
[ -v ]
[ -t ]
[ -r ]
[ -n ]
-ppath
-llimit
htcacheclean
[ -n ]
[ -t ]
[ -i ]
-dinterval
-ppath
-llimit
-dinterval
-D
, -v
and -r
options. To shutdown the daemon cleanly, just send it
a SIGTERM
or SIGINT
.-D
-d
option.-v
-d
option.-r
-d
option and implies
the -t
option.-n
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.-t
-ppath
CacheRoot
directive.-llimit
B
to the
number). Attach K
for Kbytes or M
for
MBytes.-i
-d
option.htcacheclean
returns a zero status ("true") if all
operations were successful, 1
otherwise.