Caching and displaying @rsc_ne_scotland Twitter feed

Update: Hmm, you could just use a service like Feedburner or Yahoo Pipes to handle the caching of the RSS bit.

On our JISC RSC Scotland North & East homepage we use a version 1 of the Twitter widget to display tweets (to tweak appearance we’ve actually modified the JS slightly, our local version of twitter.js here).

A problem we’ve had is the Twitter API rate limit would often kick in leaving the widget blank. A fix has been on my to do for a while and as it is the new year and all that. 

Using the Build a PHP Twitter Widget post by Alex Bor I came up with the following code to cache the json and rss for our Twitter feed: