mirror of
https://github.com/mindoc-org/mindoc.git
synced 2025-10-25 10:59:13 +08:00
fix:优化文档缓存策略,实现根据文档版本缓存
2、优化加载Markdown编辑器插件策略解决重复触发load方法BUG
This commit is contained in:
@@ -186,11 +186,13 @@ func (c *DocumentController) Read() {
|
||||
Body string `json:"body"`
|
||||
Title string `json:"title"`
|
||||
DocInfo string `json:"doc_info"`
|
||||
Version int64 `json:"version"`
|
||||
}
|
||||
data.DocTitle = doc.DocumentName
|
||||
data.Body = doc.Release
|
||||
data.Title = doc.DocumentName + " - Powered by MinDoc"
|
||||
data.DocInfo = docInfo
|
||||
data.Version = doc.Version
|
||||
|
||||
c.JsonResult(0, "ok", data)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user