Archive for July 2010


Speed up database access when using Zend_Db and Zend_Cache

July 27th, 2010 — 3:34pm

Before it performs a query, Zend_Db first needs to look up the metadata for the table.

You can easily store the results of the metadata lookups in the cache.

Assuming you already have a valid Zend_Cache object, add the following line to the bootstrap:

Zend_Db_Table_Abstract::setDefaultMetadataCache($cache);

That’s it.

Comment » | Uncategorized, Zend Framework

Back to top