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 […]

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