🎨 虚拟引用 10 分钟缓存过期
This commit is contained in:
parent
f581b34ea8
commit
7ee231f134
1 changed files with 2 additions and 1 deletions
|
@ -21,6 +21,7 @@ import (
|
|||
"regexp"
|
||||
"sort"
|
||||
"strings"
|
||||
"time"
|
||||
|
||||
"github.com/88250/gulu"
|
||||
"github.com/88250/lute"
|
||||
|
@ -87,7 +88,7 @@ func putBlockVirtualRefKeywords(blockContent, blockID, docTitle string) (ret []s
|
|||
}
|
||||
|
||||
ret = gulu.Str.RemoveDuplicatedElem(ret)
|
||||
virtualBlockRefCache.Set(blockID, ret, 1)
|
||||
virtualBlockRefCache.SetWithTTL(blockID, ret, 1, 10*time.Minute)
|
||||
return
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue