Re: [SMARTY] cache date and time

From: Date: Wed, 05 Jun 2002 13:10:20 +0000
Subject: Re: [SMARTY] cache date and time
References: 1  Groups: php.smarty.general 
Request: Send a blank email to php-smarty-general+get-4612@lists.php.net to get a copy of this message
How would you get the cache id? You need that to get the cache in the first place. Jason Sweat wrote:
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
-- Monte Ohrt <monte@ispi.net> Director of Technology, ispi Inc.

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