You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@httpd.apache.org by Larry Coffin <lc...@PointInfinity.com> on 2003/10/20 17:38:32 UTC

[users@httpd] mod_disk_cache cleanup?

	Is anyone out there using mod_disk_cache? What do you do for
cleaning up/managing the cache? This is for Apache 2.0.47 (the most recent
official release).

	The documentation isn't too clear about that issue -- from the
DiskSize directive it sounds like *something* should be cleaning up the
disk cache and bringing it back down to the limit set. But I've been using
it for a few days now and haven't seen anything like that unless I don't
have it configured correctly.

	The rest of the documentation makes it sound like there is no
built-in garbage collection at all but it doesn't mention what other people
(i.e. the developers!) do instead.

	I've searched all the places I could think of to find any mention
of this and I've looked through the code a bit but haven't seen any
specific mention of what people are doing. Before I spend the time to dig
further into the code, I thought I'd post here and see what other people
are doing.

	I know the documentation states that all the Gc related directives
are not implemented, but is there some default Gc underneath that should be
going on? And if so, how do I turn it on or figure out how it works?

	If there really isn't *any* Gc going on, what are you doing to
manage your cache? Can you have another process go through and delete old
files outside of Apache without messing the internal cache information up
(i.e. if you delete files from the cache, will Apache still think they are
there and get "confused")?

	Thanks!

	---Larry



+------------------------------------------------------------------------+
| Larry Coffin, G.P.H.                                     Watertown, MA |
| http://www.PointInfinity.com/lcoffin/        lcoffin@PointInfinity.com |
| http://www.whosmytwin.com                    Find your long lost twin! |
+------------------------------------------------------------------------+

Drive defensively.  Buy a tank.


-



---------------------------------------------------------------------
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


Re: [users@httpd] mod_disk_cache cleanup?

Posted by Larry Coffin <lc...@PointInfinity.com>.
At 12:17 PM -0400 10/20/03, Jonas Eckerman wrote:
>
>>     Is anyone out there using mod_disk_cache? What do you do for
>> cleaning up/managing the cache?
>
>You write a script that is called by "cron" to clean it up.

	Ok, that's what I suspected needed to be done.

>Check if
>the system you're using has any utilities for cleaning up temp files
>(tmpwatch for example). If it has, use them.

	Cool. I haven't stumbled across tmpwatch before. That looks really
handy!

	Do you know of any existing utilities that can remove files based
on disk usage rather than last accessed time? Or rather a combination of
those two things -- i.e. I want to say "delete the oldest files in this
directory until the directory usage (or perhaps quota usage?) is below this
number"? I can whip one up something in perl without too much trouble, but
if there is already something out there that will work, it will save some
time.

	---Larry



+------------------------------------------------------------------------+
| Larry Coffin, G.P.H.                                     Watertown, MA |
| http://www.PointInfinity.com/lcoffin/        lcoffin@PointInfinity.com |
| http://www.whosmytwin.com                    Find your long lost twin! |
+------------------------------------------------------------------------+

Drive defensively.  Buy a tank.


-



---------------------------------------------------------------------
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


Re: [users@httpd] mod_disk_cache cleanup?

Posted by Jonas Eckerman <jo...@frukt.org>.
On Mon, 20 Oct 2003 11:38:32 -0400, Larry Coffin wrote:

>     Is anyone out there using mod_disk_cache? What do you do for
> cleaning up/managing the cache?

You write a script that is called by "cron" to clean it up. Check if 
the system you're using has any utilities for cleaning up temp files 
(tmpwatch for example). If it has, use them.

One place to check can be the cron config, it's possible you can just 
copy the cron config for some other cleanup task and modify it for 
cleaning the cache dirs.

Regards
/Jonas

-- 
Jonas Eckerman, jonas_lists@frukt.org
http://www.fsdb.org/



---------------------------------------------------------------------
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