Invalidate artist cache (by changing cache key format)
This commit is contained in:
@@ -64,7 +64,7 @@ func newArtistReader(ctx context.Context, artwork *artwork, artID model.ArtworkI
|
|||||||
func (a *artistReader) Key() string {
|
func (a *artistReader) Key() string {
|
||||||
hash := md5.Sum([]byte(conf.Server.Agents + conf.Server.Spotify.ID))
|
hash := md5.Sum([]byte(conf.Server.Agents + conf.Server.Spotify.ID))
|
||||||
return fmt.Sprintf(
|
return fmt.Sprintf(
|
||||||
"%s.%x.%t",
|
"%s.%x.%t ",
|
||||||
a.cacheKey.Key(),
|
a.cacheKey.Key(),
|
||||||
hash,
|
hash,
|
||||||
conf.Server.EnableExternalServices,
|
conf.Server.EnableExternalServices,
|
||||||
|
|||||||
Reference in New Issue
Block a user