public function flush()
    {
        /** @var Cache $cache */
        $cache = $this->app['phraseanet.cache-service'];
        $flushOK = $cache->flushAll() ? 'ok' : 'ko';

        return $this->app->redirectPath('admin_dashboard', ['flush_cache' => $flushOK]);
    }
public function flush()
    {
        /** @var Cache $cache */
        $cache = $this->app['phraseanet.cache-service'];
        $flushOK = $cache->flushAll() ? 'ok' : 'ko';

        return $this->app->redirectPath('admin_dashboard', ['flush_cache' => $flushOK]);
    }
public function flush ( ) { /** @var Cache $cache */ $ cache = $ this -> app [ 'phraseanet.cache-service' ] ; $ flushOK = $ cache -> flushAll ( ) ? 'ok' : 'ko' ; return $ this -> app -> redirectPath ( 'admin_dashboard' , [ 'flush_cache' => $ flushOK ] ) ; }
Flush all cache services

@return RedirectResponse
Flush all cache services