Re: [SMARTY] Caching newbie questions
| From: | Alex | Date: | Fri, 04 Apr 2003 15:01:10 +0000 |
| Subject: | Re: [SMARTY] Caching newbie questions | ||
| References: | 1 2 3 4 | Groups: | php.smarty.general |
| Request: | Send a blank email to php-smarty-general+get-9092@lists.php.net to get a copy of this message | ||
Why not make use of the insert function? it allows for dynamic content whithin cached pages =)
http://smarty.php.net/manual/en/language.function.insert.php
takes time to setup but hey, it works ;)
Jacques Jocelyn wrote:
Hello Alex, Friday, April 4, 2003, 6:32:19 AM, you wrote: A> why not just use the insert function and cache ids. besides, compiling 3 A> templates is time consuming In my case, that will be worse, since I am using a dynamic menus(the menus can be different from one use to another) with SID(PHP SESSION ID) value within internal links therefore if I use the global cache, I will have a cache for each visitor which will be a nonsense. Besides, I had to create an class extension in order to replace old $SID value from the cache and display the current $SID. The performance decreased immensely ! Without replacing the SID, I could generate the page in .30s By Replacing the SID, Now it is about .70s so if I have several templates to display, that might be a big issue. Best regards, Jacques JOCELYN-- .::....::.:...::...:..:.:::..:..:..::.:..:..:::..:::...::..:.. :: PUBLIC VOICE Lab :: Alexey Kulikov :: :: The International Media Coop :: alex@pvl.at :: :: www.pvl.at :: phone: +43 699 1 9228792 ::