Zend_Db_Table_Abstract::setDefaultMetadataCache PHP Method

setDefaultMetadataCache() public static method

If $defaultMetadataCache is null, then no metadata cache is used by default.
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);
    }

Usage Example

Exemplo n.º 1
0
 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);
 }
All Usage Examples Of Zend_Db_Table_Abstract::setDefaultMetadataCache