SpeedUP ur WordPress Blog load time 3x faster
June 1st, 2011 > Blogging

How to Speedup your WordPress Blog Page load time 3x faster

With one line of code, you can speed up WordPress to 3x as fast loading than before and reduce the server load. By doing this…….

What is zlib Compression?

zlib is a lossless data-compression library that will help you to serve your pages faster. Basically it compresses the PHP that WordPress sends to your visitor’s browser so that it displays much more quickly. Compressing and sending is much faster than sending the PHP in its full size format.

How to do zlib Compression to your blog?

First, check to make sure that zlib is enabled on your server.

Step 1:

Paste this into a text file(notepad), save as it test.php, and upload to your server or your Blog root folder:

<?php phpinfo(); ?>

Visit your test page www.example.com/test.php
Scroll down until you find the zlib header and check to see if it’s enabled.

Step 2:

Add this small bit of code to the header.php file of your wordpress theme. Place it directly above your DOCTYPE at the beginning of the file.

<?php
ini_set(’zlib.output_compression’, ‘On’);
ini_set(’zlib.output_compression_level’, ‘1′);
?>

Update the file and the change should be instant. You can check your compression factor at: http://www.port80software.com/support/p80tools.asp.

It’s important for you to know that this technique is compatible with WP Super Cache and i also using this with w3total cache with 3.1.3 wordpress. Please write a comment for your use of this technique.


Share |

Leave a Reply