The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
How to cache the uncached templates
Hi folks, i need help (or tips) about the uncached templates, in the last days i've installed some products that have in some particular pages an uncached template, and i wanna cache them without waiting the author ...
for example: here's the 'adavanced forum rules' made by [name]valter[/name], i found an uncached template when i check an user profile. so what i need is to know how i can cache this template ... remember i'm totally newbie about this things ... thanks in advantage for your tips ... |
#2
|
||||
|
||||
You asked this in another thread also, so I posted it there, but here it is again.
for vB4: PHP Code:
PHP Code:
|
#3
|
|||
|
|||
where I can add this code to make my uncached templates working?
|
#4
|
|||
|
|||
You should be able to create a plugin using hook cache_templates. You might want to put an 'if' around it so it doesn't get cached when it's not used, like:
Code:
if (THIS_SCRIPT == 'something') { $cache[] = 'your_template'; } but I suppose it's better to cache it on every page than to not have it cached when it's used, so if you're not sure about it, just leave out the if. |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|