Joey Rivera published interesting tutorial about paging cached Twitter API results.
To demonstrate how to use Zend_Paginator I created a sample Zend Framework 1.10.0 application. This application grabs my last 50 tweets using the Twitter API and displays them 10 at a time using Zend_Paginator. I use Zend_Cache to cache my twitter data so I don’t have to spend time accessing their api every time – I’m sure they would appreciate it.
He guides through all steps of building sample application, from bootstraping, through use of Twitter service, to actual displaying results.
Joey Rivera wrote good introductory post about using Zend_Cache and caching in general. He explains what is caching, what are the benefits of caching (giving real numbers to compare) and shows how Zend_Cache can be use to cache different things in any project, not only Zend Framework based.
When ever possible, it’s more efficient to serve a static file or static content. We use cache to accomplish this. In this post I’m going to talk about caching files and database queries to local files on the server. (…) There are different ways to achieve this. I personally use Zend Framework on my projects so I’ll be using Zend_Cache in my examples. I will only be using Zend_Cache as a standalone module, not the entire framework. This way, those of you who don’t use Zend Framework can still follow this guide.
If you are new to caching and want to learn how and when to use it, this article was written exactly for you.