src/Sulu/Bundle/WebsiteBundle/Controller/CacheController.php
public function clearAction()
    {
        if (!$this->checkLivePermissionForAllWebspaces()) {
            return new JsonResponse(null, 403);
        }

        $this->get('sulu_website.http_cache.clearer')->clear();

        return new JsonResponse(null, 204);
    }
public function clearAction()
    {
        if (!$this->checkLivePermissionForAllWebspaces()) {
            return new JsonResponse(null, 403);
        }

        $this->get('sulu_website.http_cache.clearer')->clear();

        return new JsonResponse(null, 204);
    }
public function clearAction ( ) { if ( ! $ this -> checkLivePermissionForAllWebspaces ( ) ) { return new JsonResponse ( null , 403 ) ; } $ this -> get ( 'sulu_website.http_cache.clearer' ) -> clear ( ) ; return new JsonResponse ( null , 204 ) ; }
Clear the whole http_cache for website.

@return JsonResponse
Clear the whole http_cache for website .