Add thumbnail filename cache and reuse db connections

Signed-off-by: Michael Mayer <michael@liquidbytes.net>
This commit is contained in:
Michael Mayer
2020-05-28 16:26:22 +02:00
parent 0527dd655f
commit 52473a1ca9
9 changed files with 63 additions and 19 deletions

View File

@@ -44,7 +44,7 @@ func GetDownload(router *gin.RouterGroup, conf *config.Config) {
c.Data(404, "image/svg+xml", brokenIconSvg)
// Set missing flag so that the file doesn't show up in search results anymore.
report("download", f.Update("FileMissing", true))
logError("download", f.Update("FileMissing", true))
return
}