Re: [SMARTY] cache date and time

From: Date: Tue, 04 Jun 2002 22:50:57 +0000
Subject: Re: [SMARTY] cache date and time
References: 1  Groups: php.smarty.general 
Request: Send a blank email to php-smarty-general+get-4585@lists.php.net to get a copy of this message
--- Monte Ohrt <monte@ispi.net> wrote: > 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? I simply would like to use the Smarty cache wrapper, but not to use the caching lifetime method, but use the cached page as long as the datas are STILL VALID, that means until I don't have fresher datas in my datasouce (can be a DBMS). For example: I'm handling a mailing-list and want to use my cache page while the mailing list isn't changed (ie: received new message). In this case a cached page can last several days or can expire after a few minutes (who knows). But It's clear that the lifetime method doesn't fit here!). 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

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