public function xmlAction(Request $request)
    {
        $redis = $this->get('snc_redis.victoire_client');
        $locale = $request->getLocale();
        $cacheKey = "sitemap.$locale";

        $pages = $redis->get($cacheKey);
        if ($pages === null) {
            $exportHandler = $this->get('victoire_sitemap.export.handler');

            $pages = $exportHandler->serialize(
                $exportHandler->handle($locale)
            );
        }

        return $this->render('VictoireSitemapBundle:Sitemap:sitemap.xml.twig', [
            'pages' => json_decode($pages),
        ]);
    }