![]() |
Phpinclude questions (filburt?)
1/ If i'm calling templates in phpinclude, i don't want it adding a query to every page so should i use the $templatesused variable in the phpinclude too?
2/ How do i limit the code to running only when on a certain file: e.g. PHP Code:
Thanx - miSt |
1. $templatesused must be defined before global.php is included, so that won't work (you can't cache templates via phpinclude).
2. Check out PAPI at vBT and use: PHP Code:
PHP Code:
|
Yep this for a client hence why i am reluctant to install hacks for him as i don't want him coming back to me when he tries to upgrade and loses his hacks :p
Is there any way of cacheing the templates at all without hacking? I mean adding a query to the pages is a bit of a pain :) - miSt |
No, there's no way unless you use a template that's already cached but never eval'ed.
|
Darn - well thanks for the help ;)
- miSt |
All times are GMT. The time now is 01:46 PM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|