mirror of
https://github.com/navidrome/navidrome.git
synced 2025-05-31 15:49:38 +03:00
Use timestamp of artwork file instead of album's UpdatedAt in the cache key
This commit is contained in:
parent
d913108de2
commit
f1a24b971a
@ -61,6 +61,10 @@ func (a *artwork) Get(ctx context.Context, id string, size int, out io.Writer) e
|
|||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if stat, err := os.Stat(path); err == nil {
|
||||||
|
lastUpdate = stat.ModTime()
|
||||||
|
}
|
||||||
|
|
||||||
info := &imageInfo{
|
info := &imageInfo{
|
||||||
a: a,
|
a: a,
|
||||||
id: id,
|
id: id,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user