Re: [SMARTY] cache date and time
| From: | Monte Ohrt | Date: | Wed, 05 Jun 2002 13:26:03 +0000 |
| Subject: | Re: [SMARTY] cache date and time | ||
| References: | 1 | Groups: | php.smarty.general |
| Request: | Send a blank email to php-smarty-general+get-4616@lists.php.net to get a copy of this message | ||
$smarty->_cache_info['timestamp'] may contain the data you are looking for.
After a call to is_cached, do a print_r($smarty->_cache_info); and see what is in there.
Not an elegant solution, but a possible work around until this is resolved.
Monte
Mattia Wow wrote:
-- Monte Ohrt <monte@ispi.net> Director of Technology, ispi Inc.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!).Please let me know about your decision, because if you decide to not incorporate such a funcyion in Smarty I'll have to write my ow cache handler functions. Bye ______________________________________________________________________ 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