Add quality to image cache key

This commit is contained in:
Deluan 2020-07-01 17:01:46 -04:00
parent 2d8f0a740e
commit 7a9b848f38
1 changed files with 1 additions and 1 deletions

View File

@ -119,7 +119,7 @@ func (c *cover) getCoverPath(ctx context.Context, id string) (path string, lastU
}
func imageCacheKey(path string, size int, lastUpdate time.Time) string {
return fmt.Sprintf("%s.%d.%s", path, size, lastUpdate.Format(time.RFC3339Nano))
return fmt.Sprintf("%s.%d.%s.%d", path, size, lastUpdate.Format(time.RFC3339Nano), conf.Server.CoverJpegQuality)
}
func (c *cover) getCover(ctx context.Context, path string, size int) (reader io.Reader, err error) {