This commit is contained in:
Daniel 2024-11-17 01:33:21 +08:00
parent 93b687a407
commit 6a442ad85d
No known key found for this signature in database
GPG key ID: 86211BA83DF03017
23 changed files with 259 additions and 15 deletions

View file

@ -29,11 +29,17 @@ type Repo struct {
// If the data repo indexing time is greater than 12s, prompt user to purge the data repo https://github.com/siyuan-note/siyuan/issues/9613
// Supports configuring data sync index time-consuming prompts https://github.com/siyuan-note/siyuan/issues/9698
SyncIndexTiming int64 `json:"syncIndexTiming"`
// 自动清理数据仓库 Automatic purge for local data repo https://github.com/siyuan-note/siyuan/issues/13091
IndexRetentionDays int `json:"indexRetentionDays"` // 索引保留天数
RetentionIndexesDaily int `json:"retentionIndexesDaily"` // 每日保留索引数
}
func NewRepo() *Repo {
return &Repo{
SyncIndexTiming: 12 * 1000,
SyncIndexTiming: 12 * 1000,
IndexRetentionDays: 180,
RetentionIndexesDaily: 2,
}
}