The Joomla! Forum ™



Forum rules


Forum Rules
Absolute Beginner's Guide to Joomla! <-- please read before posting, this means YOU.
Forum Post Assistant - If you are serious about wanting help, you will use this tool to help you post.



Post new topic Reply to topic  [ 4 posts ] 
Author Message
PostPosted: Wed Feb 29, 2012 2:22 pm 
Joomla! Enthusiast
Joomla! Enthusiast

Joined: Mon Oct 04, 2010 4:11 pm
Posts: 151
Hello, I have developed a website and I am now working to improve loading time. I have enabled caching (Progressive Caching), use JFinalizer to compress JavaScript and CSS files, and use the .htaccess file to remove comments and whitespaces from output html file and to add headers on images and files.

My problem is that my web browser (Firefox with Firebug) reports that it waits for more than 3 seconds in order to GET http://mywebsite/en/.

However if I copy the html of this page, put it in a file named hello.html and try to access this file directly, my web browser reports it waits only for around 200 milliseconds in order to GET http://mywebsite/hello.html.

My understanding (and I can be wrong, please correct me if so) is that the difference in time is because one request passed through Joomla, while the other does not.

Is this so? if yes; is there anything I can do to further improve load times (by reducing the amount of time Joomla takes to build the html for the requested page)?


Top
 Profile  
 
PostPosted: Wed Feb 29, 2012 3:03 pm 
User avatar
Joomla! Apprentice
Joomla! Apprentice

Joined: Tue Sep 21, 2010 3:35 pm
Posts: 37
Location: Madrid (Spain)
Well, it could be for a lot of reasons. When you make a request for /en/ there are several things that your server do that are not required when you request /hello.html:
- .htaccess processing
- php engine and php business logic.
- mysql connection
- mysql queries

3 seconds waiting is way too much, try activating debug and seeing what does your server do in that time. If you can setup a local dev environment, try debugging it inside an IDE...

_________________
Soporte técnico Joomla en Español: http://www.expertosjoomla.es


Top
 Profile  
 
PostPosted: Wed Feb 29, 2012 4:06 pm 
Joomla! Enthusiast
Joomla! Enthusiast

Joined: Mon Oct 04, 2010 4:11 pm
Posts: 151
NachoBrito wrote:
3 seconds waiting is way too much, try activating debug and seeing what does your server do in that time.


I enabled debug on the live environment. I got the following result under profile.

Code:
Application 0.002 seconds (+0.002); 0.45 MB (+0.450) - afterLoad
Application 1.735 seconds (+1.732); 4.86 MB (+4.410) - afterInitialise
Application 1.932 seconds (+0.197); 5.49 MB (+0.631) - afterRoute
Application 2.636 seconds (+0.704); 6.74 MB (+1.250) - afterDispatch
Application 3.360 seconds (+0.724); 7.28 MB (+0.543) - beforeRenderModule mod_related_items (Related Articles (EN))
Application 3.781 seconds (+0.421); 7.35 MB (+0.061) - afterRenderModule mod_related_items (Related Articles (EN))
Application 4.191 seconds (+0.410); 7.36 MB (+0.012) - beforeRenderModule mod_articles_category (Categories (EN))
Application 4.455 seconds (+0.264); 7.92 MB (+0.563) - afterRenderModule mod_articles_category (Categories (EN))
Application 5.016 seconds (+0.561); 7.54 MB (-0.385) - beforeRenderModule mod_breadcrumbs (Breadcrumbs (ALL))
Application 5.616 seconds (+0.600); 7.64 MB (+0.109) - afterRenderModule mod_breadcrumbs (Breadcrumbs (ALL))
Application 7.434 seconds (+1.818); 7.43 MB (-0.211) - afterRender


Is the above result normal? Or there is room for improvement? Module "Related Articles (EN)" has Caching set to "Use Global" so I do not know why it is being rendered. Module "Breadcrumbs (ALL)" has Caching set to "No". This because otherwise breadcrumbs don't change from page to page. However the bulk of the time seems to be spent in the afterInitialise (+1.732) and afterRender (+1.818). I do not know what affects these two steps. Note from time to time total time taken changes...


Top
 Profile  
 
PostPosted: Thu Mar 01, 2012 2:06 pm 
Joomla! Enthusiast
Joomla! Enthusiast

Joined: Mon Oct 04, 2010 4:11 pm
Posts: 151
I turned System.Cache on. The result is very good with load times of less then 2 seconds.

However I am still intrested to know why mod_related_items and mod_articles_category are being rendered even if caching for these two modules is set to "On".


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 4 posts ] 



Who is online

Users browsing this forum: No registered users and 7 guests


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 post attachments in this forum

Jump to:  
Powered by phpBB® Forum Software © phpBB Group