Speed up database access when using Zend_Db and Zend_Cache

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.

Category: Uncategorized, Zend Framework | Tags: , Comment »


Leave a Reply



Back to top