Bundle/WidgetBundle/Controller/WidgetCacheController.php
public function clearAction(Request $request)
    {
        if (!$this->getParameter('kernel.debug')) {
            throw new AccessDeniedException('You should be in debug mode to access this feature');
        }
        $this->get('victoire_widget.widget_cache')->clear();

        return $this->redirect($request->headers->get('referer'));
    }
public function clearAction(Request $request)
    {
        if (!$this->getParameter('kernel.debug')) {
            throw new AccessDeniedException('You should be in debug mode to access this feature');
        }
        $this->get('victoire_widget.widget_cache')->clear();

        return $this->redirect($request->headers->get('referer'));
    }
public function clearAction ( Request $ request ) { if ( ! $ this -> getParameter ( 'kernel.debug' ) ) { throw new AccessDeniedException ( 'You should be in debug mode to access this feature' ) ; } $ this -> get ( 'victoire_widget.widget_cache' ) -> clear ( ) ; return $ this -> redirect ( $ request -> headers -> get ( 'referer' ) ) ; }
Clear the widgetcache.

@param Request $request

@Route("/victoire-dcms-public/widget-cache/clear", name="victoire_core_widget_cache_clear")

@throws Exception

@return Response
Clear the widgetcache .