Jason Gilmore talks about implementing Zend_Cache

December 7, 2010

News, Zend Framework

Over at phpbuilder.com, a href=”http://www.twitter.com/wjgilmore”>Jason Gilmore (a really smart guy) has posted a great article on how he used Zend_Cache to…well cache stuff. It’s an interesting read, partly because Zend_Cache is cool and partly because Jason is a good writer.

First, I need to say that Zend_Cache is probably my favorite piece of Zend Framework. It’s simple to use, can be used independent of the entire framework and if used correctly, can have a dramatic impact on the throughput of your application.

Jason details how he used Zend_Cache in conjunction with Data he pulled and stored from Amazon.

…because the product data will not change during that 24-hour period, it doesn’t make sense to repeatedly execute the fairly complex JOIN queries and looping statements required to retrieve and format the data. Instead, I used the Zend_Cache component to cache this data, expiring the cache just ahead of the daily update. In this article I’ll show you how to use Zend_Cache to cache your own data, considerably boosting your website performance in the process.

Jason does a good job of showing you how he used Zend_Cache to store the results of the expensive SQL queries. While Jason limits the discussion of Zend_Cache to just his needs and doesn’t talk much about the other options available, it’s still a great read. Really, the only downside is that phpbuilder has so many pop-ups on the page that it’s like a mine-filed running your mouse over the page.

This is a good article for those looking to implement Zend_Cache and want some practical advice.

About Cal Evans

Many moons ago, at the tender age of 14, Cal touched his first computer. (We're using the term "computer" loosely here, it was a TRS-80 Model 1) Since then his life has never been the same. He graduated from TRS-80s to Commodores and eventually to IBM PC's. For the past 10 years Cal has worked with PHP and MySQL on Linux OSX, and when necessary, Windows. He has built on a variety of projects ranging in size from simple web pages to multi-million dollar web applications. When not banging his head on his monitor, attempting a blood sacrifice to get a particular piece of code working, he enjoys building and managing development teams using his widely imitated but never patented management style of "management by wandering around". Cal is currently based in Nashville, TN and is gainfully unemployed as the Chief Marketing Officer of Blue Parabola, LLC. Cal is happily married to wife 1.28, the lovely and talented Kathy. Together they have 2 kids who were both bright enough not to pursue a career in IT. Cal blogs at http://blog.calevans.com and is the founder and host of Day Camp 4 Developers

View all posts by Cal Evans

Comments are closed.