Methods for clearing page caches?


#1

Here’s what I use, in a crontab entry:

*/30 * * * * find
/var/www/html/rails/public/categories/ -mmin +60 -exec
rm {} ;

I’d also like to remove empty directories, which are
easy enough to find with the ‘-empty’ param, but rmdir
trips on non-empty parent directories which it finds
before children, and I’m not sure if I want to use ‘rm
-r’. What methods have you come up with?

Also, is it possible to specify one cache directory in
/public, so that way I can keep all page caches in a
hierarchy under it?

Thanks!
csn


Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com