K
Kirby
Guest
Under some conditions, we need to add further relations when loading threads for a search forum (to avoid n additional queries).
This could be accomplished by passing
PHP:
So short of...
Read more
Continue reading...
This could be accomplished by passing
$extraWith to \XF\Entity\SearchForumUserCache::getThreadsByPage(), but unfortunately this method is called rather in the middle of \XF\Pub\Controller\SearchForum::actionView() with no obviois option to set this parameter.PHP:
$threads = $userCache->getThreadsByPage($page, $perPage);So short of...
Read more
Continue reading...