]> git.lizzy.rs Git - go-anidb.git/blobdiff - filecache.go
anidb: Also cache the EID-AID relationship when caching FILE results
[go-anidb.git] / filecache.go
index cb8d528281a9f47f20f07de47d2ba9a1fb396b87..ae529e3594362c5575ebfb19ebda3d789b35a267 100644 (file)
@@ -30,6 +30,7 @@ func (f *File) IsStale() bool {
 }
 
 func cacheFile(f *File) {
+       CacheSet(f.AID, "aid", "by-eid", f.EID)
        CacheSet(f.FID, "fid", "by-ed2k", f.Ed2kHash, f.Filesize)
        CacheSet(f, "fid", f.FID)
 }