![]() |
?? Uncached Template ??
Copied from vB.com: http://www.vbulletin.com/forum/showthread.php?t=262272
I have an uncached template from a recent modification I added (https://vborg.vbsupport.ru/showthread.php?t=171918) http://img169.imageshack.us/img169/2...emplateaf8.gif How can I make this template (and any other future uncached templates) cached so no unneccesary queries are called? I've tried editing the index.php file to include the template in the "pre-cache templates used by all actions" section: Code:
// pre-cache templates used by all actions Thanx, Jacquii. |
He should have added this plugin as well to the xml
Code:
<plugin active="1"> |
WONDERFUL! Thanx so much for you help!
Jacquii. |
im lazy like that :)
|
Tsk..Tsk.. Ryan. Shame on you. ;)
|
If this template is only used on certain pages you show wrap the cache in a conditional for example if it was only the index.php page:
PHP Code:
PHP Code:
|
And how would you do something like both of those for multiple templates being cached?
|
PHP Code:
|
Or:
PHP Code:
|
Thank you, sir. I thought that should be included in case anyone stumbles onto this and won't have to ask for that now. ;)
|
All times are GMT. The time now is 09:54 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:
|