mirror of
https://github.com/mindoc-org/mindoc.git
synced 2025-12-17 18:25:27 +08:00
增加项目导出目录配置,可自定义导出的缓存目录
This commit is contained in:
@@ -707,7 +707,7 @@ func (c *BookController) Release() {
|
||||
models.NewBook().ReleaseContent(bookId)
|
||||
|
||||
//当文档发布后,需要删除已缓存的转换项目
|
||||
outputPath := filepath.Join(beego.AppConfig.DefaultString("book_output_path", "cache"), strconv.Itoa(bookId))
|
||||
outputPath := filepath.Join(conf.GetExportOutputPath(), strconv.Itoa(bookId))
|
||||
os.RemoveAll(outputPath)
|
||||
|
||||
}(identify)
|
||||
|
||||
Reference in New Issue
Block a user