"I'm currently wrapping up a fairly large Zend Framework-driven
project that mines data from the Amazon Product Advertising API.
According to the API license agreement, this data can be cached for
a period of up to 24 hours. Therefore, I've created several
database tables to store the data, and I employ a number of
CRON-driven scripts to rebuild the data store once daily.
"However, 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.
"Zend_Cache can be configured to cache several types of output,
including the results of function calls, the results of object and
static method calls, entire pages, and configuration data. You
determine what data is cached using Zend_Cache's frontend. This
data can be cached in several ways, including using system memory
(RAM), using memcached, within text files, or within a SQLite
database. You determine exactly how your data is cached using