Remove ristretto cache
This commit is contained in:
@@ -14,7 +14,7 @@ func HandleDeleteTorrent(directory, torrentName string, t *torrent.TorrentManage
|
||||
if !torrents.Has(torrentName) {
|
||||
return fmt.Errorf("cannot find torrent %s", torrentName)
|
||||
}
|
||||
t.Delete(torrentName, true, true)
|
||||
t.Delete(torrentName, true)
|
||||
return nil
|
||||
}
|
||||
|
||||
@@ -33,10 +33,9 @@ func HandleDeleteFile(directory, torrentName, fileName string, t *torrent.Torren
|
||||
}
|
||||
file.Link = "unselect"
|
||||
if t.CheckDeletedState(torrent) {
|
||||
t.Delete(torrentName, true, true)
|
||||
} else {
|
||||
updatedPaths := t.UpdateTorrentResponseCache(torrent)
|
||||
t.TriggerHookOnLibraryUpdate(updatedPaths)
|
||||
t.Delete(torrentName, true)
|
||||
}
|
||||
// todo: triggeer an update ???
|
||||
// t.TriggerHookOnLibraryUpdate(updatedPaths)
|
||||
return nil
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user