2010-11-18, 21:14:11
yojoe Wrote:What solution would be better (faster?), assuming that 50 people were browsing the website at the same time: 2 theme files for normal and certain pages or 1 theme file with php conditional statements to show content on certain pages?
I’m guessing having 2 template files in your theme is faster.
GetSimple reads what template file should be used for a page, checks if it exists and includes it. If you go with conditional statements inside a template file it will still check what file should be used from the XML data, include it, and then it will need to compute what file to include inside your template file. So that adds an extra action.
Don’t think it will give you any noticeable speed difference though. Not even with 50 users simultaneously.
“Don’t forget the important ˚ (not °) on the a,†says the Unicode lover.
Help us test a key change for the core! ¶ Problems with GetSimple? Be sure to enable debug mode!
Help us test a key change for the core! ¶ Problems with GetSimple? Be sure to enable debug mode!