Somewhere on here awhile ago I read that using this:
{if bla}
Bla!
{/if}
{if no bla}
No Bla!
{/if]
...was faster than ...
{if bla)
Bla!
{if:else}
No Bla!
{/if}
Is that true with EE?
Along that line, is the script processed faster to use the faster conditional above or a relationship, when caching is involved? Example:
A custom dropdown has the values “cherry” or “orange,”
{exp:channel:entries channel="MyBlog"}
{if custom_field_dropdown=="cherry"} Traverse City! {/if}
{if custom_field_dropdown=="orange"} Florida! {/if}
{/exp:channel:entries}
or a second channel “food” is made with entries “cherry” and “orange” with a body tag that says “Traverse City” and “Florida” and a relationship custom field is placed in “MyBlog” to “food”.
{exp:channel:entries channel="food" cache="yes" refresh="999"}
{related_entries id="custom_field_dropdown"}
{body}!
{/related_entries}
{/exp:channel:entries}
Remembered an article written about EE’s features page where it quicker renderings were achieved by some relationship concept.