You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@httpd.apache.org by Vincent Reydet <mr...@buggynet.org> on 2008/12/16 11:51:34 UTC
mod_disk_cache: htcacheclean and rm -rf
Hi,
I'm using apache 2.2.9 and mod_disk_cache on linux.
Is it safe to launch the command "rm -rf /my_cache_dir/*" while apache
is running ?
I'm currently using this command instead : htcacheclean -l1 -p/
my_cache_dir
but it is very slow ( more than 1 hour in my case :( ) and not
suitable for urgency need.
Thanks
Vincent
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org
Re: mod_disk_cache: htcacheclean and rm -rf
Posted by Vincent Reydet <mr...@buggynet.org>.
ok thanks !
Le 17 déc. 08 à 00:22, Dan Poirier a écrit :
> Vincent Reydet <mr...@buggynet.org> writes:
>
>> But if mod_cache starts to read a file, and rm erase this file at
>> this
>> moment, a bad content is sent to the client ?
>> It would happen on a big website no ?
>
> That's not a problem on Unix. If mod_cache has the file open, the
> content won't go away until the file is closed, even if rm removes the
> directory entry. I wouldn't try it on Windows, though.
>
> Dan Poirier
> poirier@pobox.com
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
> For additional commands, e-mail: users-help@httpd.apache.org
>
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org
Re: mod_disk_cache: htcacheclean and rm -rf
Posted by Dan Poirier <po...@pobox.com>.
Vincent Reydet <mr...@buggynet.org> writes:
> But if mod_cache starts to read a file, and rm erase this file at this
> moment, a bad content is sent to the client ?
> It would happen on a big website no ?
That's not a problem on Unix. If mod_cache has the file open, the
content won't go away until the file is closed, even if rm removes the
directory entry. I wouldn't try it on Windows, though.
Dan Poirier
poirier@pobox.com
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org
Re: mod_disk_cache: htcacheclean and rm -rf
Posted by Vincent Reydet <mr...@buggynet.org>.
But if mod_cache starts to read a file, and rm erase this file at this
moment, a bad content is sent to the client ?
It would happen on a big website no ?
Le 16 déc. 08 à 21:50, Dan Poirier a écrit :
> Vincent Reydet <mr...@buggynet.org> writes:
>
>> I'm using apache 2.2.9 and mod_disk_cache on linux.
>>
>> Is it safe to launch the command "rm -rf /my_cache_dir/*" while
>> apache
>> is running ?
>
> I don't think that will hurt anything. You'll just start getting cache
> misses, as if you were starting from scratch, until the cache is built
> up again.
>
> --
> Dan Poirier <po...@pobox.com>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
> For additional commands, e-mail: users-help@httpd.apache.org
>
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org
Re: mod_disk_cache: htcacheclean and rm -rf
Posted by Dan Poirier <po...@pobox.com>.
Vincent Reydet <mr...@buggynet.org> writes:
> I'm using apache 2.2.9 and mod_disk_cache on linux.
>
> Is it safe to launch the command "rm -rf /my_cache_dir/*" while apache
> is running ?
I don't think that will hurt anything. You'll just start getting cache
misses, as if you were starting from scratch, until the cache is built
up again.
--
Dan Poirier <po...@pobox.com>
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org