Zend_Cache

Joey Rivera’s Blog: Using Zend_Paginator with Twitter API and Zend_Cache

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.

Chris Renner’s Blog: Enhance performance with Zend_Cache

Chris Renner talks on his blog about his experience with using Zend Framework’s Zend_Cache component as stand-alone library.

So I finally took the Zend Framework plunge a few weeks ago.  No, I didn’t start building an application with the framework, but I did start investigating some of the ZF classes for stand-alone implementation in my existing projects.

The first ZF class to catch my eye was Zend_Cache, for its obvious performance implications.  The applications I develop and manage are very heavy with database transactions.  Hitting the db every time you need an object is a serious performance bottleneck, and on a shared environment can be troubling to other applications living in the same environment.

He introduces readers to Zend_Cache component and its features, including some not commonly known, and presents practical usage to cache database queries using APC.

by Wojciech Szela on January 11, 2010 in News, No Comments »
tags: , ,

Joey Rivera’s Blog: Caching using PHP/Zend_Cache and MySQL

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.

by Wojciech Szela on November 21, 2009 in News, No Comments »
tags: ,

ZendCasts: Google APIs in Zend Framework Part 4

Last week a new video was publish on ZenCasts. Using Zend_Cache to speed up Web Service calls is 4th part of series on Google Docs and Google Maps.

A short video showing how you can test and implement Zend_Cache on a class that makes a really slow request (like a web service call). (…) While this example shows how to cache a Class to a file, you could easily modify the code to work with other caching backends such as a memory-based caching engine or something like Zend Optimizer or APC.

Read also Part 1 – Introduction to the Google Docs API, Part 2 – Geotargetting with the Google Maps API, Part 3 – Using Google Maps with Zend_GData.