Re: [SMARTY] cache date and time

From: Date: Tue, 04 Jun 2002 21:19:08 +0000
Subject: Re: [SMARTY] cache date and time
Groups: php.smarty.general 
Request: Send a blank email to php-smarty-general+get-4584@lists.php.net to get a copy of this message
I voted for this a while back and received no response ;) http://marc.theaimsgroup.com/?l=smarty-dev&m=102008682828760&w=2 I would like to have access to both the cache timestamp and the cache id for debugging purposes. Jason >>> Smarty goes on the assumption that if you use the built-in cache, then you are respecting the cache_lifetime setting for that cached file. So you wouldn't really be a need to get the timestamp in this case. I'm not sure if timestamp retrieval is something useful to very many people. Thoughts? As a workaround, you can extend the Smarty class and add your timestamp retrieval function, or create a custom cache handler (which may be overkill for your need) Mattia Wow wrote: > Hi! > I want to chack the cache creation date of a cached > file. > > It looks i can only check if the file exists > with > > if( $smarty->is_cached("index.tpl",$id) ) { ... } > > But I would like to get the last modification time of > the cached copy, to check if the datas in my db are > fresher than those, and I must regenerate the page. > > Tia > Mattia __________________________________________________ Do You Yahoo!? Yahoo! - Official partner of 2002 FIFA World Cup http://fifaworldcup.yahoo.com

« previous php.smarty.general (#4584) next »