fix: file cache get

This commit is contained in:
Felipe M 2025-03-23 23:45:38 +01:00
parent 597feb7b54
commit f5af7ffcbc
Signed by: fmartingr
GPG key ID: CCFBC5637D4000A8

2
cache/file.go vendored
View file

@ -20,7 +20,7 @@ type FileCache struct {
func (c *FileCache) Get(key string) (result any, err error) {
path := c.getPathForItem(key)
if _, err := os.Stat(path); os.IsNotExist(err) {
if _, err := os.Stat(path + ".metadata"); os.IsNotExist(err) {
return result, model.ErrCacheKeyDontExist
}