The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
Template Caching Question
Hello,
I have three templates that I created, two of them are javascripts and one is a simple text display. None of them do database queries but they all get reported as being uncached by the Microstats hack that I just installed. The question is this, is template caching related only to queries? Would caching the javascript be something that I need to take a look at and how would it work. I know that some of the php scripts I have installed have explicit caching script but they bare no resemblance to the original template that is being called? Any insight would really be appreciated. TIA |
#2
|
||||
|
||||
Templates are fetched en-masse at the start of execution. This is referred to as the "template cache". You need to add your templates to the $globaltemplates array to get your templates as well. Templates that are not cached will be fetched on request, using a query for every template.
|
#3
|
|||
|
|||
Thank you, I guess I thought that they were loaded automagically, LOL
Where to find the $globaltemplates array to add them? |
#4
|
||||
|
||||
They are loaded automagically - it just costs queries.
Where are you using these templates? |
#5
|
|||
|
|||
One of the javascripts is seen only by visitors, the world clock (also a javascript) is under the navbar on every page and the text template is in the side bar on every page.
|
#6
|
||||
|
||||
Can't you just add them to the templates themselves?
|
Thread Tools | |
Display Modes | |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|