mirror of
https://github.com/siyuan-note/siyuan.git
synced 2026-03-08 05:32:33 +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
|
|
@ -385,6 +385,12 @@ func InitConf() {
|
|||
if 12000 > Conf.Repo.SyncIndexTiming {
|
||||
Conf.Repo.SyncIndexTiming = 12 * 1000
|
||||
}
|
||||
if 1 > Conf.Repo.IndexRetentionDays {
|
||||
Conf.Repo.IndexRetentionDays = 180
|
||||
}
|
||||
if 1 > Conf.Repo.RetentionIndexesDaily {
|
||||
Conf.Repo.RetentionIndexesDaily = 2
|
||||
}
|
||||
|
||||
if nil == Conf.Search {
|
||||
Conf.Search = conf.NewSearch()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue