mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-12-16 14:40:12 +01:00
🎨 异步刷新资源文件缓存
This commit is contained in:
parent
143bf0f65a
commit
056f1ed579
3 changed files with 4 additions and 2 deletions
2
kernel/cache/asset.go
vendored
2
kernel/cache/asset.go
vendored
|
|
@ -37,6 +37,8 @@ var Assets = map[string]*Asset{}
|
|||
var assetsLock = sync.Mutex{}
|
||||
|
||||
func LoadAssets() {
|
||||
defer logging.Recover()
|
||||
|
||||
start := time.Now()
|
||||
assetsLock.Lock()
|
||||
defer assetsLock.Unlock()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue