Log in

View Full Version : cache templates?


Reeve of shinra
04-16-2004, 04:10 PM
Does anyone know the process for cache'ing a templates in VB3?
Thanks - John

Xenon
04-16-2004, 04:17 PM
well, you have to add it to the global or action templates array of your file.

then in global.php the templatechache arrays will be merged with the global templates like header/footer or such.

then it will look into the stylecache for the corresponding template id's for each template name, and afterwards it will cache the templates into a static array like in vb2.

Zachery
04-16-2004, 06:08 PM
Check my sig :) for some help with vB3 hacking

lifesourcerec
05-10-2004, 12:40 AM
How do you figure out which templates are not cached? I have 5 uncached templates. I know 2 of them are from the referals hack.

Zachery
05-10-2004, 12:43 AM
How do you figure out which templates are not cached? I have 5 uncached templates. I know 2 of them are from the referals hack.
Go into debug mode ;)

lifesourcerec
05-10-2004, 12:47 AM
Go into debug mode ;)

Now how I do that? ;)

lifesourcerec
05-10-2004, 12:59 AM
ok.. the 5 templates are:
adcolumn_left,
adcolumn_right (from the AdColumn v1.0 hack)

forumhome_stats_member
forumhome_stats_poster
forumhome_stats_thread

How can I fix these?

lifesourcerec
05-10-2004, 01:28 AM
can't figure why they uncached. Just checked the global.php and they are listed under $globaltemplates

// misc useful
'spacer_open',
'adcolumn_left',
'adcolumn_right',
'spacer_close',


the forumhome stats not though.

b00k
08-18-2005, 07:27 AM
added my 'banner' & 'rightsidebar'.
load times seem increased.

was tough to find info on how to do this.. so..

1) retrieve your global.php from your ftp, in the forum(s) root. (though you might not want to cache it necessarily in global, i chose to. My banners were always running and the rightside bar.)
2) download global.php, open it with editor of choice.
3) search for " // the really important ones " (without the ")
4) input the template you wanted cached. Again i entered my 'banner' and 'rightsidebar'.

If im missing something, please someone update me so that im not providing misinformation...

Thanks.

bigcurt
08-18-2005, 03:54 PM
<a href="https://vborg.vbsupport.ru/showthread.php?t=79923&highlight=trigunflame" target="_blank">https://vborg.vbsupport.ru/showt...ht=trigunflame</a> --this might help you "speed up" a bit also.

~Curt