Every single day people ask us how to speed up their sites. So here are the most common reasons why a site can be slow and some solutions.
Shared hosting speeds depend on many factors.
- How many other people are you sharing with?
Often this is the main contributing factor and using the you can instantly see how many other sites are competing for the resources.
- Networked files systems.
Often shared hosts will use networked filesystems to get more and more customers onto their overloaded servers.
This is great unless you have many small files to load ( think file based object/db cache ) and the webserver has to fetch every single one
over the network!
- Poorly configured.
Sometimes hosts disable a lot of core PHP functionality to make it more secure.
SuHosin if not configured properly can cause problems.
One of the worse things for slowing down the web server is the amount of HTTP requests on a page. Back in the old days it would be one html file and a few images, so maybe 5 requests per page. Things have changed dramatically now! Ive tested some sites reported slow on this forum and seen well over 100 HTTP requests on one page alone! Imagine there are 1000 other sites on that server all with 100 requests per page! Now do you see why shared hosting is kinda slow sometimes?
So there are a couple of ways to squeeze some more speed out of that 2 bit outfit you are paying next to nothing a month for.
Im going to stick my neck out here and recommend . Its been around for ages and just works!
It will store your pages/posts etc as static files and serve them via .htaccess so PHP is not even loaded.
Also has built in support for CDN Pull Zone.
A Content Distribution Network offloads all your small files ( css/js/images ) to many other servers around the world and they are served
by the closest server to the end user thats viewing your page, this speeds up your page response time by a huge amount!
Remember all those HTTP requests I mentioned just now?
There are a few CDN plugins about none of which I have the time to test so I wrote one myself, its attached to this post. I adds a menu to
the PageLines admin area with a text area to add your pullzone.
If you need a cheap CDN package I recommend MaxCDN.
Resources mentioned in this post.
4.09KB 46 downloads