You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@httpd.apache.org by Jeremy Jones <Je...@s1now.com> on 2008/04/16 16:20:41 UTC
[users@httpd] Controlling the size of the cache used by mod_disk_cache in Apache 2.2.8
Hi,
Apache 2.2.8 on Linux.
Is there a directive anywhere to allow me to control the size of the
cache used by mod_disk_cache?
>From httpd.conf
# Apache 2 caching
#
<IfModule mod_cache.c>
<IfModule mod_mem_cache.c>
<IfModule mod_disk_cache.c>
CacheRoot /usr/local/apache-common/proxy-80
CacheEnable disk /images
CacheIgnoreNoLastMod On
CacheDefaultExpire 600
CacheMaxExpire 3600
CacheDirLevels 3
CacheDirLength 6
</IfModule>
</IfModule>
</IfModule>
but my cache directory is growing and growing. I see MCacheSize but
that's only for Apache's memory cache, not the disk one.
Do I need to stop & start Apache & clear out the cache via cron, or is
it just controlled indirectly via the cachemaxexpire directive or ?
Many thanks.
--------------------------------------------------------------------
This email has been scanned for viruses and other threats
using Newsquest's Ironport email filters
This e-mail, including any attachment, is private and
confidential.
It should not be read, copied, disclosed or otherwise used by
any person other than the intended recipient(s).
If you have received this e-mail in error, please notify the
sender immediately.
Newsquest reserves the right to monitor e-mails in
accordance with the Telecommunications (Lawful Business
Practice)
(Interception of Communications) Regulations 2000.
Newsquest Limited.
Registered in England, number 3105111 . Registered office:
58 Church Street, Weybridge, Surrey KT13 8DP
--------------------------------------------------------------------
Re: [users@httpd] Controlling the size of the cache used by mod_disk_cache in Apache 2.2.8
Posted by Joshua Slive <jo...@slive.ca>.
On Wed, Apr 16, 2008 at 10:20 AM, Jeremy Jones <Je...@s1now.com> wrote:
>
>
> Hi,
>
> Apache 2.2.8 on Linux.
>
> Is there a directive anywhere to allow me to control the size of the cache
> used by mod_disk_cache?
>
> but my cache directory is growing and growing. I see MCacheSize but that's
> only for Apache's memory cache, not the disk one.
>
> Do I need to stop & start Apache & clear out the cache via cron, or is it
> just controlled indirectly via the cachemaxexpire directive or ?
Use htcacheclean from cron or in its daemon mode. You don't need to
stop and start apache to run it.
Joshua.
---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
" from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org