The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
How do I...
Do this?
Quote:
And is there any other things like this I could do to reduce queries.. Btw, if this is in the wrong forum, I apologise, and if you move it, please let me know. Thanks |
#2
|
|||
|
|||
Defining $templatesused before requiring global.php will cache those templates. For example:
PHP Code:
IMO I think it's a pretty dumb system; a better way (again, IMO) would be to associate each template with one or more PHP files, and then have the template engine automatically cache all necessary templates for that file. |
#3
|
||||
|
||||
Quote:
It is not always desired to cache all templates a .php file uses because some of them are used only in certain conditions (like error templates or ignore user templates) and devs may not want to cache these everytime that php file runs. This is because everytime you cache a template you are eating up your server RAM. Sometimes you prefer to save some RAM space, instead of saving an extra query which will be very infrequently added. |
#4
|
|||
|
|||
Thanks, I understand now
|
#5
|
||||
|
||||
as i should mention, vb3 will use a completly different system for templatecaching, much better in my eyes if it's like i think now
|
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|