mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-12-17 23:20:13 +01:00
🎨 Automatic purge for local data repo https://github.com/siyuan-note/siyuan/issues/13091
This commit is contained in:
parent
93b687a407
commit
6a442ad85d
23 changed files with 259 additions and 15 deletions
|
|
@ -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,
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue