RE: [SMARTY-DEV] Re: [SMARTY] Cache cleanup
| From: | Jason Sweat | Date: | Mon, 17 Jun 2002 20:23:34 +0000 |
| Subject: | RE: [SMARTY-DEV] Re: [SMARTY] Cache cleanup | ||
| Groups: | php.smarty.dev | ||
| Request: | Send a blank email to php-smarty-dev+get-155@lists.php.net to get a copy of this message | ||
It should be just as easy to code something into the
page
if ('true' == $_GET['clear_cache_now']) {
...
}
That would do it, then fetch the page with that url
parameter. It does not have to be cron'd from that
server locally, you could do it from any system that
can connect, any system on the internet if it is a
public site.
I am not 100% sure, but there should be a windows
version of curl, or something similar, that you could
combine with the scheduler service to do something
similar in windows. Worst case, curl does work from a
cygwin environment.
Jason
P.S. I have something similar, in that I use cron'd
scripts to override the cache feature and "freshen"
the content periodically, so that my script has to
endure the db query time, not some poor unsuspecting
user :)
>>>>
And the option for those that need the performance of
turning this off and
running something via crontab.
The problem is that we need to have something built
into Smarty for those
users that don't have crontab access (I don't on all
my servers) so they
can still use the cache without having to FTP in once
a week and delete the
cache.
__________________________________________________
Do You Yahoo!?
Yahoo! - Official partner of 2002 FIFA World Cup
http://fifaworldcup.yahoo.com