Or if you don't want to depend on Unix's cron and want your program to do
everything, you can set it so each time a new visitor comes to your site,
checks which files are not needed, and delete them.
You can use fork to avoid putting the visitors to wait until the program is
doing its background job.

teddy.fcc.ro
[EMAIL PROTECTED]
----- Original Message -----
From: "drieux" <[EMAIL PROTECTED]>
To: "cgi cgi-list" <[EMAIL PROTECTED]>
Sent: Wednesday, August 27, 2003 8:46 PM
Subject: Re: automated file removal / cache clearing



On Wednesday, Aug 27, 2003, at 07:18 US/Pacific, Shahar Evron wrote:
[..]
> I'm working on a CGI program that creates some user-specific
> file on the server when accessed. is there a good way to make
> sure theese files are cleared when they're no longer needed -
> IE if a file in a specific directory was not accessed for 5 minutes,
> delete it.
[..]

I hate to suggest the alternative, but why not
use a 'cookie' to cache that information on
the user's side?



-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to