public static setDefaultMetadataCache ( mixed $metadataCache = null ) : void | ||
$metadataCache | mixed | Either a Cache object, or a string naming a Registry key |
return | void |
public static function setDefaultMetadataCache($metadataCache = null)
{
self::$_defaultMetadataCache = self::_setupMetadataCache($metadataCache);
}
protected function _initDbCache() { $frontendOptions = array('automatic_serialization' => true); $backendOptions = array('cache_dir' => APPLICATION_PATH . '/../cache'); $cache = Zend_Cache::factory('Core', 'File', $frontendOptions, $backendOptions); Zend_Db_Table_Abstract::setDefaultMetadataCache($cache); }