Tag Archive for 'cache' Page 3 of 3



WP Super Cache disabled due to potential XSS vulnerabilities

I just came across disturbing “reports” of WP Super Cache being vulnerable to cross-site scripting code injection attacks. Just to be safe, I’ve disabled WP Super Cache and reverted to WP Cache v2.1.2 until the issue is resolved. Donncha is very responsive so I’m sure this scare will be behind us very soon.

Sources:
Donncha’s Thursday Links
wp-super-cache cached too far for me (and others)
wp-super-cache vulnerable to PHP Injection?

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

Minify and compress Javascript/CSS with minimal CPU overhead

With modern web designs, especially those with AJAXy features, you’d be shocked to find that Javascript and CSS contribute significantly to the amount of data your browser downloads for a webpage. Usually, the Javascript and CSS files are larger than the HTML webpage itself. Continuing my trend of debunking popular or common beliefs, read on for why on-the-fly JS/CSS compression that you read about on Digg often will actually crash your site hard when you get Dugg. I also present a simple yet more efficient way of compressing your files.
Continue reading ‘Minify and compress Javascript/CSS with minimal CPU overhead’

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

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’