Re: Re[5]: [SMARTY] dyamic include file variable
| From: | Darryl Bleau | Date: | Thu, 09 Jan 2003 21:18:55 +0000 |
| Subject: | Re: Re[5]: [SMARTY] dyamic include file variable | ||
| References: | 1 2 | Groups: | php.smarty.general |
| Request: | Send a blank email to php-smarty-general+get-7096@lists.php.net to get a copy of this message | ||
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 :)
Assuming I'm understanding how Smarty cache and PHPA work, if I were to
design the site single-controller style, then smarty would compile each
template into a template_c the first time the main controller set it as the
$Include. Does this create a particular bytecode just for that request that
PHPA would cache, or does it mean that each time the $Include changed that
PHPA would cache a new bytecode (because it only sees index.php being
called)? If it does create individual instances of cached bytecode on a
request basis, what happens if database data changes? Obviously the compiled
Smarty templates won't change, but does the PHPA cached bytecode?
If I were to do it in the multi-controller style, would this be a better
solution for PHPA in regards to caching? (Because then it would only have to
re-compile the particular .php page that has changed, instead of a huge
index.php).
Please forgive me if I'm being stupid here, I've been coding nothing but C
for the past year and I've only spent the past week doing PHP-related
research. :)
Ultimately, my primary goals are performance and maintainability, and I can
sacrifice ease of coding and project completion time in order to attain
those goals.
Thanks for everyone's ideas on the matter, you've all given me a lot to
think about :) The request re-writing is something I was considering if I
was going to do a single-controller style site, if for nothing other than
just clean-looking URLs :)
Darryl Bleau