Re: [SMARTY] cache cron job
| From: | Mark Rogers | Date: | Wed, 19 Feb 2003 15:26:48 +0000 |
| Subject: | Re: [SMARTY] cache cron job | ||
| References: | 1 2 3 | Groups: | php.smarty.general |
| Request: | Send a blank email to php-smarty-general+get-7886@lists.php.net to get a copy of this message | ||
> Anyone have any different suggestions? Seriously, how
> do you people run scripts to clear out the cache/compile
> directories?
I've not tried this, but it ought to be straightforward to create a page on
your site that deletes the cache files (eg by visiting
www.mysite.com/delete_cache.php). This should work fine since it would, by
definition, have the right rights.
You can then automate it with cron using something like wget to "fetch" that
page periodically, dumping output to /dev/null or wherever.
Mark Rogers,
Quarella (More Solutions) Ltd
---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.449 / Virus Database: 251 - Release Date: 27/01/2003