RE: [SMARTY-DEV] cache/compile garbage collection

From: Date: Wed, 17 Jul 2002 17:40:03 +0000
Subject: RE: [SMARTY-DEV] cache/compile garbage collection
References: 1  Groups: php.smarty.dev 
Request: Send a blank email to php-smarty-dev+get-208@lists.php.net to get a copy of this message
Huzzah! Now I can implement gc in my Smarty class wrapper :) Thanks Monte >-----Original Message----- >From: Monte Ohrt [mailto:monte@ispi.net] >Sent: Wednesday, July 17, 2002 8:55 AM >To: smarty-dev@lists.php.net >Subject: [SMARTY-DEV] cache/compile garbage collection > > >I added a new paramater to clear_all_cache(), >clear_cache() and clear >compiled_tpl(). You can now specify (in seconds) how >old the file(s) >must be before they are cleared. > >// clear all cache files older than one hour >clear_all_cache(3600); > >//clear all cache_id = 'blue' older than one day >clear_cache(null,'blue',null,86400); > > >// clear all compiled templates older than one week >clear_compiled_tpl('index.tpl',null,604800); > > >This still isn't an automated way of handling garbage >collecting, but >now you can at least do it programatically through Smarty. > >good/bad method? > >Monte > > >-- >Smarty Development Mailing List (http://smarty.php.net/) >To unsubscribe, visit: http://www.php.net/unsub.php >

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