Re: [SMARTY] Re: Template execution time
| From: | Alex | Date: | Tue, 13 May 2003 07:54:06 +0000 |
| Subject: | Re: [SMARTY] Re: Template execution time | ||
| References: | 1 2 3 | Groups: | php.smarty.general |
| Request: | Send a blank email to php-smarty-general+get-9541@lists.php.net to get a copy of this message | ||
Use the smarty insert function. It will be called even if templates are cached.
Katana wrote:
p> thanks for your answers but my problem isn't really measure the p> time. I have a "timer" class to do that. The problem is how to p> force Smarty always measure script execution even if the template p> is cached. p> An example: the first time template is shown, it takes 1 second. p> Second time, template is cached, it takes 0,5 seconds but, because p> it is cached it still show 1 second and I want to show the real p> time it takes to be generated. I don't know if explain correctly p> but my english is poor. Oh... Then you would need to store the execution time when the page is not cached, and display it every time... good luck, no real idea how you would do that. Katana-- .::....::.:...::...:..:.:::..:..:..::.:..:..:::..:::...::..:.. :: PUBLIC VOICE Lab :: Alexey Kulikov :: :: The International Media Coop :: alex@pvl.at :: :: www.pvl.at :: phone: +43 699 1 9228792 ::