|
Smarty
WARNING: All discussion is moving to https://reddit.com/r/smarty, please go there! This forum will be closing soon. |
|
View previous topic :: View next topic |
Author |
Message |
JohnSerbersky Smarty n00b
Joined: 02 Oct 2013 Posts: 3
|
Posted: Wed Oct 02, 2013 10:34 pm Post subject: Smarty Templates takes 3.3 seconds to load. |
|
|
I have only one page on my site that takes that long to load, this is user details page with huge form.
And i have to have about 150 separate {if}{else}{/if} statements.
Are IF statements slowing down the page or there is other things that i can check to speed things up? |
|
Back to top |
|
U.Tews Administrator
Joined: 22 Nov 2006 Posts: 5068 Location: Hamburg / Germany
|
Posted: Thu Oct 03, 2013 9:33 am Post subject: |
|
|
Do you have by mistake $smarty->force_compile = true so that your templates get recompiled on each call? |
|
Back to top |
|
JohnSerbersky Smarty n00b
Joined: 02 Oct 2013 Posts: 3
|
Posted: Mon Oct 07, 2013 8:15 pm Post subject: |
|
|
U.Tews wrote: | Do you have by mistake $smarty->force_compile = true so that your templates get recompiled on each call? |
Actually i did, then when i disabled it page was opening in less than second.
I guess more if's you got more it takes to compile cache. |
|
Back to top |
|
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
Powered by phpBB © 2001, 2005 phpBB Group
|