Archive for the 'WordPress' Category Page 2 of 2



Improving WP Super Cache? gzip for logged in users

The code changes here have been incorporated into WP Super Cache. Simply install the latest version, no modifications necessary.

For users who have written comments or are logged in, WP Super Cache serves up the traditional WP-Cache cached pages instead of static pages (or rather, the web server doesn’t direct logged in users the static pages). In other words, anonymous visitors get the compressed or uncompressed Super Cache pages, but logged in users only get uncompressed pages served by WP-Cache. I merged in the code I posted previously to make WP-Cache properly gzip compress cached pages once per page, so that logged in users can enjoy gzipped pages too (stored on disk and served by WP-Cache, not recompressed for each request). Very interested in what Donncha thinks about this. Also included Reiner Saddey’s fix to prevent WP-Cache from changing the content type of feeds to “text/html”.

Downloads:
WP Super Cache gzip enhanced - modified files
WP Super Cache gzip enhanced - diffs
Credit: Nick Georgakis and Reiner Saddey

If you liked this post, please subscribe to my feed. Thanks for visiting!

WP Super Cache: truly sensible caching with compressed and static pages

A successor to WP-Cache has emerged. Donncha O Caoimh has just released the first public version of WP Super Cache. WP Super Cache is based on WP-Cache but is superior in many ways. With no further development of WP-Cache, Donncha’s WP Super Cache is likely to become the defacto caching and anti-Digg/Slashdot solution for WordPress. Read on for details.
Continue reading ‘WP Super Cache: truly sensible caching with compressed and static pages’

WP-Cache + gzip without excessive CPU overhead, yay!

In my last post, I talked about the problems of getting WP-Cache to work with gzip compression. In short, most of the solutions suggested on the web require gzip compression of cached pages each time they are requested. It turns out it is not so difficult to hack a gzip feature into WP-Cache after all. Read on to see how you can make the latest WP-Cache gzip compress cached pages only once per page no matter how many times they are served. A modified version of the latest WP-Cache v2.1.2 that supports this efficient gzip feature is also available for download. :)

The information and source code in this post is only relevant if you have some specific reason or desire to continue using WP-Cache instead of the new WP Super Cache. Read more about Super Cache here. WP Super Cache now incorporates all the features described here.

Continue reading ‘WP-Cache + gzip without excessive CPU overhead, yay!’

WordPress caching woes

Caching is one of the most effective methods to reduce server load and improve load times on a WordPress site. There are two commonly cited caching methods one can utilize. Surprisingly, most guides recommending caching methods to improve WP performance do not mention the significant drawbacks. In fact, many common “guides” for increasing WP performance with caching and gzip compression may instead decrease your site’s performance. Continue reading ‘WordPress caching woes’