Gossamer Forum
Home : Products : Gossamer Links : Development, Plugins and Globals :

overhead of <%if%> statements in templates

Quote Reply
overhead of <%if%> statements in templates
We have some templates that are called very often by a high volume of traffic and that have quite a number of if else statements in the templates (around 10-20). Does this create a large performance issue or would it be just minor processing for LSQL?
Quote Reply
Re: [scorpioncapital] overhead of <%if%> statements in templates In reply to
Shouldn't be too much. Its more when you have loops, and lots of includes that it builds up the CPU usage. The tags are already loaded into the template, so all the 'if' statement does, is to check if the existing tag holds a value, or just exists. You could try benchmarking these pages that use a lot of 'if' statements, but I really don't think its gonna cause you a problem.

Cheers

Andy (mod)
andy@ultranerds.co.uk
Want to give me something back for my help? Please see my Amazon Wish List
GLinks ULTRA Package | GLinks ULTRA Package PRO
Links SQL Plugins | Website Design and SEO | UltraNerds | ULTRAGLobals Plugin | Pre-Made Template Sets | FREE GLinks Plugins!