![]() |
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? |
AdminCP -> Plugin System -> Add New Plug-In ->
Hook: Cache Templates Title: Whatever you want (Eg: Cache opgelostlinkjes) PHP Code:: PHP Code:
And save... |
How do I find out if the template is uncached?
|
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.
|
Thank you.
I fixed the uncached templates that my hack uses. |
Thank You!
Danny; the methode I used whas editting the showthread.php and add the item manual. Is your idea better? |
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 |
//
You may want to report it to whoever made the hack. // I did that, thankyou :). But what's better? File edit or this methode? |
Quote:
|
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. |
All times are GMT. The time now is 02:28 AM. |
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:
|