The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
||||
|
||||
Caching templates
Hi,
I get this warning: Page generated in 0,25061 seconds with 12 queries (1 queries for uncached templates) Uncached templates: opgelostlinkjes (1) So how can I cache it? |
#2
|
|||
|
|||
AdminCP -> Plugin System -> Add New Plug-In ->
Hook: Cache Templates Title: Whatever you want (Eg: Cache opgelostlinkjes) PHP Code:: PHP Code:
And save... |
#3
|
|||
|
|||
How do I find out if the template is uncached?
|
#4
|
|||
|
|||
When you have your forum in debug mode, there is a list of templates being used in a table called "Template Usage." If a template is uncached it's in red font, otherwise it's cached and it normal black font.
|
#5
|
|||
|
|||
Thank you.
I fixed the uncached templates that my hack uses. |
#6
|
||||
|
||||
Thank You!
Danny; the methode I used whas editting the showthread.php and add the item manual. Is your idea better? |
#7
|
||||
|
||||
You may want to report it to whoever made the hack.
Adding the template to the $globaltemplates array depends if you need the template globally. You may want to add it to the $actiontemplates array ... it all depends on your needs. This may help ... https://vborg.vbsupport.ru/showthread.php?t=104532 |
#8
|
||||
|
||||
//
You may want to report it to whoever made the hack. // I did that, thankyou . But what's better? File edit or this methode? |
#9
|
|||
|
|||
Quote:
|
#10
|
||||
|
||||
If it's a vbulletin default file I suggest the plugin method.
Which variable ($globaltemplates / $actiontemplates) should you use depends on your hack. If it's a custom product (you created it) ... edit the file. |
Thread Tools | |
Display Modes | |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|