Quote:
Originally Posted by KW802
Mind if I run with your idea and post an update?  I started with your original post but ran into a few issues ( some missing curly braces to close the phrase names, sessionurl instead of sessionurl_q, etc.) and before I knew it I ended up adding code to cache the template ( that will eliminate an extra query on every page) and also added a link for "Latest Albums" on the "What's New" tab.
|
That is fine.
Actually have the template cached in another plugin assigned to the cache_templates hook. Would be good to have it assigned to the product though. I have a product just for the site that contains the plugin currently.
PHP Code:
if (THIS_SCRIPT == 'vbcms')
{
$cache[] = 'forumhome_loggedinuser';
}
if (THIS_SCRIPT == 'index')
{
$cache[] = 'block_users_online';
}
$cache[] = 'gallery_navbar_link';
Have a plugin to group the templates as well. It is assigned to the template_groups hook.
PHP Code:
$only['gallery_'] = $vbphrase['group_gallery'];