Keep Server Online
If you find the Apache Lounge, the downloads and overall help useful, please express your satisfaction with a donation.
or
A donation makes a contribution towards the costs, the time and effort that's going in this site and building.
Thank You! Steffen
Your donations will help to keep this site alive and well, and continuing building binaries. Apache Lounge is not sponsored.
| |
|
Topic: htcacheclean leaves files in cache root directory untouched |
|
Author |
|
GadiK
Joined: 14 Jul 2010 Posts: 14
|
Posted: Mon 16 Aug '10 17:12 Post subject: htcacheclean leaves files in cache root directory untouched |
|
|
Hi guys,
I've been using htcacheclean to maintain my cache folder size under 5G.
I have noticed that it cleans only the files that are under the sub-directories of the cache folder, but the files that are straight in the cache root folder are untouched and have reached a total size of 25G.
I am using a scheduler to run
Code: | htcacheclean -nt -p"<MYPATH>\myapache_22\cache" -l5000M |
every 24 hours. (<MYPATH> is not what I really use)
mod_disk_cache is configured like so:
Code: | <IfModule mod_cache.c>
<IfModule mod_disk_cache.c>
CacheRoot "<MYPATH>\myapache_22\cache"
CacheEnable disk /gk/file_one
CacheEnable disk /gk/file_two
CacheDirLevels 3
CacheDirLength 3
CacheDefaultExpire 604800
CacheMaxFileSize 100000000
</IfModule>
</IfModule> |
How do I get htcacheclean to deal with all the files in the cache dir?
Thank you. |
|
Back to top |
|
James Blond Moderator
Joined: 19 Jan 2006 Posts: 7373 Location: Germany, Next to Hamburg
|
Posted: Thu 26 Aug '10 16:40 Post subject: |
|
|
To clean the complete cache you can use -r but than apache has to be stopped during that which is maybe not wanted. |
|
Back to top |
|
|
|
|
|
|