Skip to main content

rebuild_content_html

Function rebuild_content_html 

Source
pub async fn rebuild_content_html(
    rebuild_all: bool,
) -> Result<RebuildResult, ServerFnError>
Expand description

批量重建文章 content_html 与 toc_html。

rebuild_all 为 true 时重建所有未删除文章;否则仅重建 content_html 为空的文章。 单批最多处理 500 条,渲染异常或写入失败会被捕获并汇总。

§Handler information

  • Method: post
  • Path: <auto>