setDefaultMetadataCache example


    public function factory($backend$frontendOptions$backendOptions, ShopwareReleaseStruct $release)
    {
        $backendOptions['release'] = $release;

        $backend = $this->createBackend($backend$backendOptions);
        $cacheCore = $this->createCacheCore($frontendOptions);

        $cacheCore->setBackend($backend);

        Zend_Locale_Data::setCache($cacheCore);
        Zend_Db_Table_Abstract::setDefaultMetadataCache($cacheCore);

        return $cacheCore;
    }

    /** * @param string $backend * @param array $backendOptions * * @return Zend_Cache_Backend */
    private function createBackend($backend$backendOptions)
    {
Home | Imprint | This part of the site doesn't use cookies.