library/Services/ClearCache/ClearCache.php
public function init($request)
    {
        $cache = new Cache();
        if ($this->getServiceConfig()->getShopEdition() === ServiceConfig::EDITION_ENTERPRISE) {
            $cache->clearCacheBackend();
            if ($request->getParameter('clearVarnish')) {
                $cache->clearReverseProxyCache();
            }
        }
        $cache->clearTemporaryDirectory();
    }
public function init($request)
    {
        $cache = new Cache();
        if ($this->getServiceConfig()->getShopEdition() === ServiceConfig::EDITION_ENTERPRISE) {
            $cache->clearCacheBackend();
            if ($request->getParameter('clearVarnish')) {
                $cache->clearReverseProxyCache();
            }
        }
        $cache->clearTemporaryDirectory();
    }
public function init ( $ request ) { $ cache = new Cache ( ) ; if ( $ this -> getServiceConfig ( ) -> getShopEdition ( ) === ServiceConfig :: EDITION_ENTERPRISE ) { $ cache -> clearCacheBackend ( ) ; if ( $ request -> getParameter ( 'clearVarnish' ) ) { $ cache -> clearReverseProxyCache ( ) ; } } $ cache -> clearTemporaryDirectory ( ) ; }
Clears shop cache.

@param Request $request
Clears shop cache .