Cache for directories and torrents

This commit is contained in:
Ben Sarmiento
2023-11-30 03:16:10 +01:00
parent 253b92a3b6
commit 5914af80fd
6 changed files with 226 additions and 177 deletions

View File

@@ -83,7 +83,7 @@ func handleDeleteFile(w http.ResponseWriter, segments []string, t *torrent.Torre
}
file.Link = "unselect"
t.SetNewLatestState(torrent.EmptyState())
t.ScheduleForRefresh()
w.WriteHeader(http.StatusNoContent)
return nil
}