Re: [SMARTY-DEV] Re: [SMARTY] Cache cleanup

From: Date: Mon, 17 Jun 2002 14:36:49 +0000
Subject: Re: [SMARTY-DEV] Re: [SMARTY] Cache cleanup
References: 1 2 3 4  Groups: php.smarty.dev 
Request: Send a blank email to php-smarty-dev+get-150@lists.php.net to get a copy of this message
It seems that register_shutdown_function() is broken. We had better not rely on it. http://bugs.php.net/bug.php?id=15209 Monte Ohrt wrote:
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).
-- Monte Ohrt <monte@ispi.net> Director of Technology, ispi Inc.

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