Hello, i'm trying to Cache ALL Zend_Db_Table_Abstract Objects! Like described in the manual, i putted this: [pre] $cacheFrontendOptions = array( 'automatic_serialization' => true ); $cacheBackendOptions = array( 'cache_dir' => BP . DS . 'data' . DS . 'cache' . DS . 'models' ); $cache = Zend_Cache::factory( 'Core', 'File', $cacheFrontendOptions, $cacheBackendOptions ); Zend_Db_Table_Abstract::setDefaultMetadataCache($cache); $db = Zend_Db::factory($generalConfig->database); Zend_Db_Table_Abstract::setDefaultAdapter($db); [/pre] in my Bootstrap class! Ok, everything is working fine! For ONE table-model! The metadata of one model is cached, but the other models not! Can someone give me the final advice?!
View this message in context: Zend_Db_Table_Abstract::setDefaultMetadataCache()
Sent from the Zend DB mailing list archive at Nabble.com.
2008年11月26日星期三
订阅:
博文评论 (Atom)
没有评论:
发表评论