switch($tag){ case self::CACHE_TAG_CONFIG: $this->clearConfigCache(); break; case self::CACHE_TAG_SEARCH: $this->clearSearchCache(); break; case self::CACHE_TAG_ROUTER: $this->clearRewriteCache(); break; case self::CACHE_TAG_TEMPLATE: $this->clearTemplateCache(); break; case self::CACHE_TAG_THEME: case self::CACHE_TAG_HTTP: $this->clearHttpCache(); break; case self::CACHE_TAG_PROXY: $this->clearProxyCache(); $this->clearOpCache(); break; default: return false; }