Re: Speed of demo
| From: | LIMBOURG Arnaud | Date: | Tue, 30 Oct 2001 08:21:18 +0000 |
| Subject: | Re: Speed of demo | ||
| Groups: | php.smarty.general | ||
| Request: | Send a blank email to php-smarty-general+get-1770@lists.php.net to get a copy of this message | ||
> Actually now that I think about it, APC & Zend cache aren't going to
> make a difference in these numbers... they are calculated after the
> script has begun execution anyways. To get a true page load
> calculation,
> you would need to fetch the page externally through the web server. I
> have a PHP script that I could share to do this (_very_
> simple one page
> test) if anyone is interested. Output looks like this:
>
> instant: 0.328 avg: 1.452 min: 0.326 max: 3.700 length: 107 bytes
> instant: 0.302 avg: 1.164 min: 0.302 max: 3.700 length: 107 bytes
> instant: 0.342 avg: 1.000 min: 0.302 max: 3.700 length: 107 bytes
> instant: 0.326 avg: 0.887 min: 0.302 max: 3.700 length: 107 bytes
> instant: 0.289 avg: 0.802 min: 0.289 max: 3.700 length: 107 bytes
> ............
>
> Yes, form pages probably aren't worth caching. You _could_ use insert
> tags for the form and cache the rest. Other pages may be worth caching
> though, depending on your app.
mm, the way the architecture is at the moment is as follows:
main template : main.tpl, it is very basic and just has design aspects.
Inside this template i have a var assigned from the script which includes
the needed template.
many other template files included as needed.
Ex: <html>, etc.
{include file="$FILE.tpl"}
$FILE is assigned from the script.
It may be not the best structure but i wanted to have a way to truly modify
the whole site design very fast, and having just one main template is the
easiest way I came up with.
The forms are what make the app so there is not much else to cache. The aim
of the app is to generate documents, forms are to show the user the
different things he can have in the final document...
Arnaud.