diTii.com Digital News Hub

Sign up with your email address to be the first to know about latest news and more.

I agree to have my personal information transfered to MailChimp (more information)

Jul052006

Compressing PHP output with wp-cache2 WordPress Plugin

Wp-Cache2 is a WordPress Plugin to cache WordPress generated pages. However it doesn’t work with in-built gzip compression. Wp-Cache 2 significantly increases performance of WordPress enabled websites. Additionally it drastically reduces the processing load on the machine. It is intelligent to understand when to refresh the cache based on author / publisher activity.

The solution is to use Apache mod_deflate module.

A simple configuration (add in httpd.conf) might be:

AddOutputFilterByType DEFLATE text/html text/plain text/xml application/x-httpd-php

This assumes you have mod_deflate loaded. If not load it first:

LoadModule deflate_module modules/mod_deflate.so

PS: wp-cache-2 doesn’t work on Windows based servers.

Compressing PHP output with wp-cache2 WordPress Plugin

Share This Story, Choose Your Platform!

Get Latest News

Subscribe to Digital News Hub

Get our daily newsletter about the latest news in the industry.
First Name
Last Name
Email address
Secure and Spam free...