Copied from vB.com: http://www.vbulletin.com/forum/showthread.php?t=262272
I have an uncached template from a recent modification I added (
https://vborg.vbsupport.ru/showthread.php?t=171918)
How can I make this template
(and any other future uncached templates) cached so no unneccesary queries are called? I've tried editing the index.php file to include the template in the "pre-cache templates used by all actions" section:
Code:
// pre-cache templates used by all actions
$globaltemplates = array(
'FORUMHOME',
'forumhome_event',
'forumhome_forumbit_level1_nopost',
'forumhome_forumbit_level1_post',
'forumhome_forumbit_level2_nopost',
'forumhome_forumbit_level2_post',
'forumhome_lastpostby',
'forumhome_loggedinuser',
'forumhome_moderator',
'forumhome_subforumbit_nopost',
'forumhome_subforumbit_post',
'forumhome_subforumseparator_nopost',
'forumhome_subforumseparator_post',
'forumhome_markread_script'
);
The hook for cb_quickthread is global - so when editing the index.php to include the template - It only works on the main index.php and not all other pages. Question: how can I get the template to cache globally?
Thanx,
Jacquii.