Log in

View Full Version : Having Speed Issues with <if> statement


Snake~eyes
07-09-2007, 01:16 AM
I am trying to run some things in my template based on the page it is on.

I have been using <if condition="THIS_SCRIPT == 'index'">

I have one for index, showthread and forumdisplay. In both the header and the footer(2x3 for a total of 6), this slows down the loading of the page TREMENDOUSLY. Is there any other faster way to do this? Please let me know.

Dismounted
07-09-2007, 05:03 AM
Using conditionals shouldn't slow down your forum, especially if it's just comparison.

Snake~eyes
07-09-2007, 05:32 AM
Well its not any other conditionals, just these specifically. It is slowing it down dramatically, probably 2-3 seconds if not more. I have tested it several times with and without these, the other conditionals seem to be fine. Any suggestions?

Adrian Schneider
07-09-2007, 05:42 AM
Those are really simple conditions - there are probably thousands if not more that run in the vB. code on every page load. 2 more does nothing.