# 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 &amp; East](http://www.rsc-ne-scotland.ac.uk/) 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](http://www.rsc-ne-scotland.ac.uk/twitter.js)).

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](http://brenelz.com/blog/build-a-php-twitter-widget/) I came up with the [following code](https://gist.github.com/766473) to cache the json and rss for our Twitter feed: