Posted by KaiseRCrazY on 11th December 2009

Compress WordPress output and speed your blog!

You can compress your output and make your blog speed faster. But this function needs zlib. If your server has no zlib plugin this function can’t work. Let’s Begin…

Here is the code;

Add this code  to your header.php above the DOCTYPE area;

<?php
ini_set('zlib.output_compression', 'On');
ini_set('zlib.output_compression_level', '1');
?>

For check zlib…

Create a test.php file with this code ;

<?php phpinfo(); ?>

After that you can check your phpinfo with this file. (http://www.yourdomain.com/test.php)

That’s All. Have a nice day.

  • del.icio.us
  • Digg
  • Facebook
  • FriendFeed
  • Reddit
  • StumbleUpon
  • Technorati
  • PDF
  • Print

This website uses IntenseDebate comments, but they are not currently loaded because either your browser doesn't support JavaScript, or they didn't load fast enough.

No comments yet!

Post your comments