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?
Sep 17, 2003, 3:32 PM
Veteran / Moderator (18436 posts)
Sep 17, 2003, 3:32 PM
Post #2 of 2
Views: 1399
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!
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!