mirror of
https://github.com/siyuan-note/siyuan.git
synced 2026-02-28 09:54:07 +01:00
🎨 Improve rhy cache duration
Signed-off-by: Daniel <845765@qq.com>
This commit is contained in:
parent
79e7339517
commit
535308f6ab
4 changed files with 16 additions and 9 deletions
|
|
@ -575,7 +575,7 @@ func getStageIndex(pkgType string) (ret *StageIndex, err error) {
|
|||
defer stageIndexLock.Unlock()
|
||||
|
||||
now := time.Now().Unix()
|
||||
if 3600 >= now-stageIndexCacheTime && nil != cachedStageIndex[pkgType] {
|
||||
if util.RhyCacheDuration >= now-stageIndexCacheTime && nil != cachedStageIndex[pkgType] {
|
||||
ret = cachedStageIndex[pkgType]
|
||||
return
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue