Re: [SMARTY] cache date and time

From: Date: Tue, 04 Jun 2002 20:53:00 +0000
Subject: Re: [SMARTY] cache date and time
References: 1  Groups: php.smarty.general 
Request: Send a blank email to php-smarty-general+get-4583@lists.php.net to get a copy of this message
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 ===== -- Mattia ______________________________________________________________________ Non perderti un solo gol! Iscriviti al FIFA VIP Club http://it.yahoo.com/mail_it/foot/?http://it.sports.yahoo.com/vipclub/index.html
-- Monte Ohrt <monte@ispi.net> Director of Technology, ispi Inc.

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