Marcus
Well-known member
In Debug I see one additional query per each callback function returning a template:
How can I cache them all? With template caching? http://xenforo.com/community/threads/how-to-use-template-hooks.13167/ I thought xenForo caches most stuff on its own today
PHP:
<xen:callback class="My_Callback_ForumList" method="getForumList" params="{$visitor}" />
PHP:
class My_Callback_ForumList {
public static function getForumList($content, $params, \XenForo_Template_Abstract $template) {
return $template->create('custom_template', $templateParams);
}
}