Re: [SMARTY] Re: Benchmarking cache and inserts
| From: | Nino Katic | Date: | Fri, 06 Jun 2003 16:51:13 +0000 |
| Subject: | Re: [SMARTY] Re: Benchmarking cache and inserts | ||
| References: | 1 | Groups: | php.smarty.general |
| Request: | Send a blank email to php-smarty-general+get-9666@lists.php.net to get a copy of this message | ||
On 6 Jun 2003, Thomas Schulz wrote:
> Nino Katic wrote in php.smarty.general:
>
> > Starting page had 3 inserts, caching turned on and it was already
> > cached on disk. The time for processing the page was cca. 0,69 sec.
> >
> > Then i deleted cache on the disk and the time was cca. 0,74 sec.
> >
> > At the end i reorganized things. There were no inserts and the caching
> > was turned off. The time was cca. 0,75 sec.
> >
> > Can you comment this results? In general is this time too big for some
> > site that will have ultrabig load ?
>
> This is expected behavoir when the code inside your inserts takes so much
> time. If you wont to cache the output of an insert you have the do this
> inside the insert or use the wrapper I posted or don't use inserts.
Thomas,
As i see it, that wrapper enables you to use inserts as they should be
used (not cached code) or as cached code. I have to use inserts like not
cached code or make something like cache id for every insert but i'm not
sure how to do it..
Nino