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

Share online:

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

About The Author

Deepak Gupta is a IT & Web Consultant. He is the founder and CEO of diTii.com & DIT Technologies, where he’s engaged in providing Technology Consultancy, Design and Development of Desktop, Web and Mobile applications using various tools and softwares. Sign-up for the Email for daily updates. Google+ Profile.