Improve the image loading performance in the database https://github.com/siyuan-note/siyuan/issues/15245

This commit is contained in:
Daniel 2025-07-09 16:18:53 +08:00
parent 9bb91c3a97
commit c852f6f51a
No known key found for this signature in database
GPG key ID: 86211BA83DF03017
8 changed files with 113 additions and 8 deletions

View file

@ -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 {