I recently installed the Twitter Widget Pro (originally built at Xavysis) on the site, and realized it didn’t cache the twitter feed for more than a few seconds. Naturally, I didn’t want to ping twitter every time a visitor came to the site, especially since my twitter feed doesn’t update terribly often. What’s more, I’d prefer to show the last known twitter feed instead of “twitter is down.” if the plugin can’t connect to Twitter.
The modified version will cache your twitter feed for 10 minutes before it pings Twitter, and will still revert to the cache if twitter is down.
Installation tips:
Make sure the plugin’s directory is writable on your server, otherwise it’ll revert to pinging Twitter every visitor.
and again, big thanks to Aaron Campbell for the original version.
1 thought on “Updated WordPress Twitter Widget”