Is Your WordPress Site Slow? How To Speed Up Your Site’s Performance
You can really improve your website’s performance without spending any money. It is as simple as tuning up the delivery of pages, images and scripts using the tips given by the Google Page Speed Tools, Before I explain any further, let’s take a peak under the hood to see how a web page is built.
Have You Ever Wondered Where The Web Page You Are Looking At Comes From?
Here is what happens the first time a web page is visited.
When your WordPress web page is visited for the very first time, something like this had to happen behind the scenes:
1. Someone clicks a link to go to a page on your website
2. Your web server hears the call, finishes what it is already doing, and turns its attention to responding to the request.
3. The web server instructs the WordPress PHP programs to build the page that has been requested. WordPress looks in its database for the page or post HTML and text, then inserts the page header, footer and sidebars around the edges.
7. Once the page is rendered you can look at it, and no doubt you will click a link on it, whereby the whole process starts again for the next page.
So the apparent speed of your site boils down to how fast your webserver can re-construct each page and send it to the visitor’s browser.
What Happens The Second And Subsequent Times A Web Page Is Visited?
When a visitor comes to your site more than once, and the files associated with those pages (assuming he has not cleared his cache since his last visit), will have already been cached in his browser, so this will make the page appear faster to load.
So How Can You Improve The Performance Of Your WebServer?
Well, you can upgrade your hosting account to get a faster, more expensive webserver. But before you do that, you could also install a caching plugin. We use WP Super Cache. It’s a free WordPress plugin and it works quite well.
How Page Caching Works
When WP Super Cache is installed on your site, it remembers the HTML version of each page as it is visited, and stores it. So when the first person visits a page, the webserver still has to construct the page from scratch as described above, reading from the database and running PHP programs within WordPress. All very time-consuming.
Cache : In computing terms, a cache is a place where you place some data so it can be found the next time you need it, quickly and easily. This is done when the original retrieval of the data is work intensive. But once the page has been visited by a single person, because WP Super Cache holds onto the built page, the next time someone visits it, the webserver delivers the pre-built page without having to construct it each time. This saves time and makes your site run faster.4
Rebuilding the Cache With WP Super Cache
WP Super Cache can be set to rebuild the page every so often and the default value is every 3 minutes. This ensures that the saved version of the page is relatively fresh. You can of course set the value to be much longer – like every hour or more if you wish.
Now obviously if the page changes, the saved page will be out of date. Saved (or cached) pages are served up to
• Any user who are is not logged in.
• Any user who has not left a comment
• Any user not viewing a password protected post.
This means that anyone leaving a comment on your site will see the real page (not an out of date cached page). But in doing so they cause WP Super Cache to generate a cached version of the page for subsequent viewers. Read the section half-way down the page entitled : What does the Cache Rebuild feature do? to find out more.
How Can You Make Your Site Appear Faster To Visitors?
Once the page has arrived at the visitor’s browser, WP Super Cache has done all it can on the server. Any further optimization has to take effect at the user’s browser. To find out what performance improvements you need to make, use Google’s Page Speed Tool. Page Speed will help you identify all the areas on your site where performance improvements can be made.