public function init($request)
    {
        $cache = new Cache();
        if ($this->getServiceConfig()->getShopEdition() === ServiceConfig::EDITION_ENTERPRISE) {
            $cache->clearCacheBackend();
            if ($request->getParameter('clearVarnish')) {
                $cache->clearReverseProxyCache();
            }
        }
        $cache->clearTemporaryDirectory();
    }