]> git.lizzy.rs Git - go-anidb.git/commitdiff
anidb: Also cache the EID-AID relationship when caching FILE results
authorDiogo Franco (Kovensky) <diogomfranco@gmail.com>
Fri, 26 Jul 2013 23:31:50 +0000 (20:31 -0300)
committerDiogo Franco (Kovensky) <diogomfranco@gmail.com>
Fri, 26 Jul 2013 23:31:50 +0000 (20:31 -0300)
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)
 }