Re: Re[5]: [SMARTY] dyamic include file variable

From: Date: Thu, 09 Jan 2003 23:27:43 +0000
Subject: Re: Re[5]: [SMARTY] dyamic include file variable
References: 1 2 3 4  Groups: php.smarty.general 
Request: Send a blank email to php-smarty-general+get-7105@lists.php.net to get a copy of this message
You are correct, it seems to be totally trasparent. PHPA seems to know something about the request. I did a little testing of my own, and I thought I'd post here just for prosperity: Restarted apache to have a clean PHPA cache. Wrote a little index.php that includes different templates depending on the ?page= in the request, and made two different test pages, main.tpl and test.tpl. First load of index.php with ?page=main.tpl - 3.4870ms Refresh index.php with ?page=main.tpl - 1.0641ms Refresh index.php with ?page=main.tpl - 0.5600ms Load index.php with ?page=test.tpl - 0.5580ms I'm not quite sure what sort of magic it does in the background but it seems to work out quite well :) > PHPA should really have no effect on how you use Smarty, it just speeds > execution time. It should be 100% transparent to drop in PHPA with any > PHP application, Smarty or not. PHPA creates a byte-code cache for each > physical php script on your system, and updates the bytecode whenever a > change is made to the original script. This is all transparent.

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