Important Notice: Our web hosting provider recently started charging us for additional visits, which was unexpected. In response, we're seeking donations. Depending on the situation, we may explore different monetization options for our Community and Expert Contributors. It's crucial to provide more returns for their expertise and offer more Expert Validated Answers or AI Validated Answers. Learn more about our hosting issue here.

How to have WP-Cache with Gzip compression enable?

0
Posted

How to have WP-Cache with Gzip compression enable?

0

The default WP-Cache plugin do not support gzip compression. If you would like to turn on WP-Cache with gzip compression you need to do some hacking. Here are the steps:- 1st: Download the latest version of WP-Cache 2nd: Turn off gzip in the Options. 3rd: Edit: wp-cache-phase1.php Add this line: if ( extension_loaded(’zlib’) ) ob_start(’ob_gzhandler’); Before this: foreach ($meta->headers as $header) { header($header); 4th: Edit: /wp-content/advanced-cache.php Add: if ( extension_loaded(’zlib’) ) ob_start(’ob_gzhandler’); Before this: foreach ($meta->headers as $header) { That’s it! and now your site should be fast enough!

Related Questions

What is your question?

*Sadly, we had to bring back ads too. Hopefully more targeted.

Experts123