Apache HTTP Server Version 2.2
This document refers to a legacy release (2.2) of Apache httpd. The active release (2.4) is documented here. If you have not already upgraded, please follow this link for more information.
You may follow this link to go to the current version of this document.
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.