Smarty Forum Index Smarty
The discussions here are for Smarty, a template engine for the PHP programming language.

what about the cache?

 
Post new topic   Reply to topic    Smarty Forum Index -> Smarty 3
View previous topic :: View next topic  
Author Message
yarco
Smarty Regular


Joined: 20 Mar 2009
Posts: 39

PostPosted: Fri Jul 17, 2009 7:30 am    Post subject: what about the cache? Reply with quote

I see someone do a customer function nocache and use it like this:

{nocache}
// something we don't want to cache
{/nocache}

or
{cache expire=86400}
// something we cache it one day
{/cache}

So is it useful or there is alreay such functions valid??
Back to top
View user's profile Send private message
U.Tews
Administrator


Joined: 22 Nov 2006
Posts: 5067
Location: Hamburg / Germany

PostPosted: Sun Jul 19, 2009 8:46 pm    Post subject: Reply with quote

Right now it is possible to set individual cache lifetimes for included templated.

{include file="include.tpl" cache_lifetime=86400}
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    Smarty Forum Index -> Smarty 3 All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group
Protected by Anti-Spam ACP