]> git.lizzy.rs Git - go-anidb.git/commitdiff
anidb: Correct cache key for LID.MyListEntry
authorDiogo Franco (Kovensky) <diogomfranco@gmail.com>
Fri, 26 Jul 2013 15:45:32 +0000 (12:45 -0300)
committerDiogo Franco (Kovensky) <diogomfranco@gmail.com>
Fri, 26 Jul 2013 15:45:32 +0000 (12:45 -0300)
Caused lookups to always miss cache.

mylistcache.go

index b0047317b7bebd2b7b754fe220cd93ecac6f5da0..539af39140b6928cf089ea3b076a04fb8fa3773a 100644 (file)
@@ -38,7 +38,7 @@ func (uid UID) MyList(fid FID) *MyListEntry {
 
 func (lid LID) MyListEntry() *MyListEntry {
        var e MyListEntry
-       if CacheGet(&e, "lid", lid) == nil {
+       if CacheGet(&e, "mylist", lid) == nil {
                return &e
        }
        return nil