Re: Re[5]: [SMARTY] dyamic include file variable
| From: | Monte Ohrt | Date: | Thu, 09 Jan 2003 22:06:47 +0000 |
| Subject: | Re: Re[5]: [SMARTY] dyamic include file variable | ||
| References: | 1 2 3 | Groups: | php.smarty.general |
| Request: | Send a blank email to php-smarty-general+get-7102@lists.php.net to get a copy of this message | ||
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.
Now that said, there is a little gotcha with PHPA which you can get more
info from their mailing list. Basically, if you see screwy stuff
happening due to byte-code not getting updated, try wiping out all the
phpa files and restarting apache. I do this when I upgrade Smarty,
that's about the only time it happens for me. It has to do with
object/class inheritance in very special cases, not recognizing the
change because of the way it was included/inherited.
You can also setup PHPA to not test for file changes to increase
performance, but you must be aware of what you're doing then. Don't do
that during development :-)
Monte
On Thu, 2003-01-09 at 15:18, Darryl Bleau wrote:
> I'm still evaluating whether I want to do my site in the two styles
> mentioned (I've been calling them single-controller/multi-controller around
> the office here). One thing that will make a huge difference for the site
> I'm making is raw speed. So my question is related to site layout style, but
> it's also (OnTopic) because it will make a difference how Smarty and PHPA
> work together :)