How to store lightweight formatting (Textile, Markdown) in database?

前端 未结 4 430
故里飘歌
故里飘歌 2021-02-01 21:28

I\'m going to be implementing a lightweight formatting language (probably Textile, maybe Markdown) in a project I\'m working on, and I\'m wonder how best to store it in the data

4条回答
  •  遥遥无期
    2021-02-01 21:35

    You should definetly store original Textile/Markdown markup and use either standard HTTP caching stuff (Last-modified, Expires-At, ETag) to cache rendered pages or just cache the result of processing markup.

提交回复
热议问题