public function renderFeedBlockAction($feedUrl, $offset = 0, $limit = 5)
    {
        $response = new Response();
        try {
            // Keep response in cache. TTL is configured in default_settings.yml
            $response->setSharedMaxAge($this->container->getParameter('ezdemo.cache.feed_reader_ttl'));

            return $this->render(
                'eZDemoBundle:frontpage:feed_block.html.twig',
                array(
                    'feed' => ezcFeed::parse($feedUrl),
                    'offset' => $offset,
                    'limit' => $limit,
                ),
                $response
            );
        }
        // In the case of exception raised in ezcFeed, return the empty response to fail nicely.
        catch (Exception $e) {
            $this->get('logger')->error("An exception has been raised when fetching RSS feed: {$e->getMessage()}");

            return $response;
        }
    }