public function preRender(Event $event)
    {
        $markdown = $event->getParam('markdown');

        $markdownHash = md5($markdown);

        $success = false;
        $renderedMarkdown = $this->cache->getItem($markdownHash, $success);
        if ($success) {
            $event->stopPropagation(true);

            return $renderedMarkdown;
        }

        return false;
    }
public function preRender(Event $event)
    {
        $markdown = $event->getParam('markdown');

        $markdownHash = md5($markdown);

        $success = false;
        $renderedMarkdown = $this->cache->getItem($markdownHash, $success);
        if ($success) {
            $event->stopPropagation(true);

            return $renderedMarkdown;
        }

        return false;
    }
public function preRender ( Event $ event ) { $ markdown = $ event -> getParam ( 'markdown' ) ; $ markdownHash = md5 ( $ markdown ) ; $ success = false ; $ renderedMarkdown = $ this -> cache -> getItem ( $ markdownHash , $ success ) ; if ( $ success ) { $ event -> stopPropagation ( true ) ; return $ renderedMarkdown ; } return false ; }
Searches the cache for rendered markdown.

@param  \Zend\EventManager\Event $event
@return mixed the rendered markdown, if found, false otherwise
@throws \Zend\Cache\Exception\ExceptionInterface
Searches the cache for rendered markdown .