diff --git a/cache/file.go b/cache/file.go index 55512a1..9bd7a31 100644 --- a/cache/file.go +++ b/cache/file.go @@ -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 }