A privacy-first, self-hosted, fully open source personal knowledge management software, written in typescript and golang. (PERSONAL FORK)
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

:art: Improve the marketplace refresh timer https://github.com/siyuan-note/siyuan/issues/14685

Daniel 85934230 9c970b1b

+7 -3
+2 -1
kernel/job/cron.go
··· 32 32 go every(5*time.Second, task.StatusJob) 33 33 go every(5*time.Second, model.SyncDataJob) 34 34 go every(2*time.Hour, model.StatJob) 35 + go every(6*time.Hour, util.RefreshRhyResultJob) 35 36 go every(2*time.Hour, model.RefreshCheckJob) 36 37 go every(3*time.Second, model.FlushUpdateRefTextRenameDocJob) 37 38 go every(util.SQLFlushInterval, sql.FlushTxJob) ··· 43 44 go every(30*time.Second, model.FlushAssetsTextsJob) 44 45 go every(30*time.Second, model.HookDesktopUIProcJob) 45 46 go every(24*time.Hour, model.AutoPurgeRepoJob) 46 - go every(30*time.Minute, model.AutoCheckMicrosoftDefender) 47 + go every(30*time.Minute, model.AutoCheckMicrosoftDefenderJob) 47 48 48 49 // TODO: 移除旧方案 https://github.com/siyuan-note/siyuan/issues/14414 实现新的刷新机制 49 50 //go every(3*time.Second, model.WatchLocalShorthands)
-1
kernel/model/cloud_service.go
··· 215 215 ) 216 216 217 217 func RefreshCheckJob() { 218 - go util.GetRhyResult(true) // 发一次请求进行结果缓存 219 218 go refreshSubscriptionExpirationRemind() 220 219 go refreshUser() 221 220 go refreshAnnouncement()
+1 -1
kernel/model/elevator_windows.go
··· 87 87 return 88 88 } 89 89 90 - func AutoCheckMicrosoftDefender() { 90 + func AutoCheckMicrosoftDefenderJob() { 91 91 time.Sleep(7 * time.Second) 92 92 microsoftDefenderLock.Lock() 93 93 defer microsoftDefenderLock.Unlock()
+4
kernel/util/rhy.go
··· 58 58 rhyResultCacheTime = now 59 59 return cachedRhyResult, nil 60 60 } 61 + 62 + func RefreshRhyResultJob() { 63 + GetRhyResult(true) 64 + }