mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-12-16 22:50:13 +01:00
⚡ Improve the image loading performance in the database https://github.com/siyuan-note/siyuan/issues/15245
This commit is contained in:
parent
9bb91c3a97
commit
c852f6f51a
8 changed files with 113 additions and 8 deletions
|
|
@ -61,9 +61,9 @@ func watchAssets() {
|
|||
go cache.LoadAssets()
|
||||
|
||||
if watcher.Remove == event.Op {
|
||||
RemoveIndexAssetContent(event.Path)
|
||||
HandleAssetsRemoveEvent(event.Path)
|
||||
} else {
|
||||
IndexAssetContent(event.Path)
|
||||
HandleAssetsChangeEvent(event.Path)
|
||||
}
|
||||
case err, ok := <-assetsWatcher.Error:
|
||||
if !ok {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue