If I don't execute subforums on my xf install, start render time is reduced to 1.6 !!! I removed this from template node_forum_level_2
Code:<xen:if is="{$renderedChildren} AND {$level} == 2"> <div class="Popup subForumsPopup"> <a href="{xen:link forums, $forum}" rel="Menu" class="cloaked" data-closemenu="true"><span class="dt">{xen:phrase sub_forums}:</span> {xen:number $forum.childCount}</a> <div class="Menu JsOnly subForumsMenu"> <div class="primaryContent menuHeader"> <h3>{$forum.title}</h3> <div class="muted">{xen:phrase sub_forums}</div> </div> <ol class="secondaryContent blockLinksList"> <xen:foreach loop="$renderedChildren" value="$child"> {xen:raw $child} </xen:foreach> </ol> </div> </div> </xen:if>
This seems interesting. How do I do this? Do I simply remove the code from /install/data/templates.xml?
Cool. Thanks for the stats.Before: Timing: 10.1150 seconds Memory:198.324 MB DB Queries:9
After: Timing: 6.7003 seconds Memory: 192.335 MB DB Queries: 9
Publish the tips to tweak xf buddyMy tweaked vb4 could produce my forum home page in 0.04-0.06 seconds whereas my tweaked xf takes more than 0.1 seconds. Hundreds of forums slow down xf. xf is much faster on topic pages.
We use essential cookies to make this site work, and optional cookies to enhance your experience.