public function getCache() { if (self::$__cache === null) { self::$__cache = Yaf_Registry::get('cache'); //$this->cache = self::$__cache; } return self::$__cache; }