Skip to main content

update_asset_purge_settings

Function update_asset_purge_settings 

Source
pub async fn update_asset_purge_settings(
    auto_purge_enabled: bool,
    retention_days: i32,
) -> Result<AssetPurgeSettings, ServerFnError>
Expand description

更新孤儿素材清理配置。

retention_days 会被 clamp 到合法范围后写入。清理任务每天 tick 时读取 最新值,无需重启。

§Handler information

  • Method: post
  • Path: <auto>