In a custom BB code PHP callback I am creating, I call a template and currently this call to the template is generating an additional template query per page.
I have tried:
and:
Neither preload the template as I would expect.
I can presumably do this via the template_create code event, but it seems like this should work. Can anyone suggest anything I might have missed?
I have tried:
PHP:
$formatter->getView()->preLoadTemplate('my_template');
and:
PHP:
$template->preloadTemplate('my_template');
Neither preload the template as I would expect.
I can presumably do this via the template_create code event, but it seems like this should work. Can anyone suggest anything I might have missed?