I have a page that's set up like this:
{if segment_2 == ""}
// show categories
{/if}
{if segment_2 != ""}
// show entries
{/if}
I'm using simple conditionals ( as opposed to if:else ) because I don't want the contents of the second part to be parsed when they shouldn't.
But, when my segment_2 is empty, EE still goes inside that tag and parses everything, resulting in a slow page load.
There's nothing out of the ordinary inside that simple conditional ( EE tags, an embed and a little bit of php ( parsed on output ) )
But something forces EE to ignore the parsing error and parse everything inside the conditional. Question is: what ?
I know I could probably just use switchee and be done with it, but I shouldn't have to. I want to figure out what goes wrong.