Offload or cache your WordPress feed for maximum performance

My WordPress install is fast, but it’s not as fast as I’d like it to be. More importantly, my CPU utilization is through the roof, so much so that I’ve considered signing up for a second Bluehost account just to handle the extra requirements.

I think I found the culprit.

My site uses a ton of caching scripts. At one point I even dumped WordPress out to raw HTML files and served them directly. That cut my MySQL calls down to a hundredth of their original, yet my CPU was still high because WordPress wasn’t caching my RSS Feed. My site gets 25,000 RSS requests a day! That was killing me. A huge thanks goes out to Lime Daley for pointing to a simple fix.

As a note, instead of rewriting Super Cache I chose to use Feed Burner and redirect traffic with an .htaccess file to the Google powered version with this code:

RewriteEngine On
RewriteBase /
RewriteCond %{REQUEST_URI} ^/$
RewriteCond %{QUERY_STRING} ^feed=rss2?$
RewriteRule ^.* /feed/? [R,L]
RewriteRule ^feed$ http://feeds.feedburner.com/thisismyurl [R,L]

Leave a Reply

Your email address will not be published. Required fields are marked *