Smarty Forum Index Smarty
WARNING: All discussion is moving to https://reddit.com/r/smarty, please go there! This forum will be closing soon.

Caching of included templates

 
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    Smarty Forum Index -> General
View previous topic :: View next topic  
Author Message
jotango
Smarty Rookie


Joined: 20 Apr 2005
Posts: 13

PostPosted: Tue Mar 28, 2006 11:21 pm    Post subject: Caching of included templates Reply with quote

Hello,

I have set up our pages in a way that the .php file calls a template (filetoshow.tpl). Inside this template at the top I include the header.tpl, on the left the menu.tpl in the middle I write the text etc. I include these files using {include file="xy.tpl"}.

Now, how can I set my included templates to cache, but not the main one? I would like the menus etc. to be cached, but not the content in the middle of the page. How can I accomplish this?

Thanks

Jan
Back to top
View user's profile Send private message
boots
Administrator


Joined: 16 Apr 2003
Posts: 5611
Location: Toronto, Canada

PostPosted: Wed Mar 29, 2006 2:13 am    Post subject: Reply with quote

Hi.

Maybe consider wrapping the include in a non-caching block plugin: http://smarty.php.net/manual/en/caching.cacheable.php
Back to top
View user's profile Send private message
Display posts from previous:   
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    Smarty Forum Index -> General 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