I would just cache the rendered output. Use something like this: http://railscasts.com/episodes/387-cache-digests
Is there any way to "precompile" Markdown in Rails?
-
13-10-2022 - |
Frage
I have a rails app which displays static markdown from an sqlite database. Is there any way to "precompile" the markdown files like for css/js so that markdown does not need to be re-rendered for each request? If so, how do I do it?
There was a question similar to this but I don't know how to cache markdown either. Some websites suggest that rendering markdown adds very little overhead to the app. Is this correct?
Lösung
Lizenziert unter: CC-BY-SA mit Zuschreibung
Nicht verbunden mit StackOverflow