/** * set cache */ protected function _setCache() { if (null === self::$_cache) { $frontendOptions = array('lifeTime' => 3600, 'automatic_serialization' => true); $backendOptions = array('cache_dir' => SP_APP_PATH . '/cache/'); self::$_cache = Zend_Cache::factory('Core', 'File', $frontendOptions, $backendOptions); } }