Re: [SMARTY] Caching newbie questions

From: Date: Fri, 04 Apr 2003 12:03:53 +0000
Subject: Re: [SMARTY] Caching newbie questions
References: 1 2  Groups: php.smarty.general 
Request: Send a blank email to php-smarty-general+get-9087@lists.php.net to get a copy of this message
Hello, I built a site a very long time ago at the early ages of smarty with this situation. It was a portal like web site with several part needing to be cached and other (user login bloc and so on) needing not to be cached. From memory I did it this way : - The page was conceived as a html table, each important part being a cell So I had a main index.tpl, always the same, this index.tpl including a lot of other templates based on user input and links. - With the fetch method Smarty works somehow like a browser. If you "include", the template is included and is evaluated (and perhaps cached) only with the remaining of other templates, but if you use fetch the fetched template is then evaluated and its the result that is included. As far as I remember I never had any problem. The site is dead now (it was happy ages of the net) and I've not done that anymore , I wrote from memory so may be someone will correct me if I wrote a huge mistake, but the global concept was this one. Luc At 12:54 04/04/03 +0100, pt2002 wrote:
Hello, I've made a question about {insert} two or three days ago an one of the answers was this: "An idea could be to divide your pages into blocks and only cache the blocks that do not contain the time." My doubts reside here (only cache the blocks...) Thanks for your answer Best regards pt2002


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