Smarty Forum Index Smarty
The discussions here are for Smarty, a template engine for the PHP programming language.
Smarty Templates takes 3.3 seconds to load.

 
Post new topic   Reply to topic    Smarty Forum Index -> General
View previous topic :: View next topic  
Author Message
JohnSerbersky
Smarty n00b


Joined: 02 Oct 2013
Posts: 3

PostPosted: Wed Oct 02, 2013 10:34 pm    Post subject: Smarty Templates takes 3.3 seconds to load. Reply with quote

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
View user's profile Send private message
U.Tews
Administrator


Joined: 22 Nov 2006
Posts: 4656
Location: Hamburg / Germany

PostPosted: Thu Oct 03, 2013 9:33 am    Post subject: Reply with quote

Do you have by mistake $smarty->force_compile = true so that your templates get recompiled on each call?
Back to top
View user's profile Send private message
JohnSerbersky
Smarty n00b


Joined: 02 Oct 2013
Posts: 3

PostPosted: Mon Oct 07, 2013 8:15 pm    Post subject: Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    Smarty Forum Index -> General All times are GMT
Page 1 of 1

 
Jump to:  
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
Protected by Anti-Spam ACP