Re: [SMARTY] Cache cleanup

From: Date: Mon, 17 Jun 2002 13:37:08 +0000
Subject: Re: [SMARTY] Cache cleanup
References: 1 2 3  Groups: php.smarty.dev 
Request: Send a blank email to php-smarty-dev+get-149@lists.php.net to get a copy of this message
It looks like register_shutdown_function() might do the trick for us anyways (?) So no need for an external script. http://www.php.net/manual/en/function.register-shutdown-function.php However, I see that the behavior isn't correct on Apache for windows (see the second user contributed note) Monte Ivo Jansch wrote:
(I'm moving this thread to the dev list now) Monte Ohrt wrote:
The external file has to know your environment: where template_dir and cache_dir is for example. It basically needs the smarty object passed to it, so it would be better to include the script and call a function. But then we're back to the processing time issue.
You could also pass these as parameters to the external script. What also might be a solution is to create a cronscript example that you distribute with Smarty. But ofcourse, if Smarty could handle it, that would be nicer (as long as performance isn't affected).


« previous php.smarty.dev (#149) next »