Is code within a branch executed if it’s in a conditional that returns FALSE. I’m experience some major slowness from code that I don’t think should be being executed.
For example:
I’m on page page who’s URL only has a segment_1 (e.g. domain.com/reports/). In my template I have…
{if segment_2}
...slow code…
{if:else}
...
{/if}If I remove everything between the first IF the page renders at a normal speed. This makes me think it is trying to execute that code, however what this code would output is not ever displayed. If I go to a page with the segment_2 it loads at a normal speed.
EE 1.6.7 Build: 20090211