]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
blow last cache for faves
authorEvan Prodromou <evan@prodromou.name>
Sat, 22 Nov 2008 16:52:34 +0000 (11:52 -0500)
committerEvan Prodromou <evan@prodromou.name>
Sat, 22 Nov 2008 16:52:34 +0000 (11:52 -0500)
darcs-hash:20081122165234-84dde-d9d6a608434502cb3d5fb09f04d0c641900c3134.gz

classes/User.php

index 55c0f45768b1f1008c4254b8b969fdde91273427..75dd73315186d1ea9acf747c89cb3cc1a6222da4 100644 (file)
@@ -386,7 +386,10 @@ class User extends Memcached_DataObject
        function blowFavesCache() {
                $cache = common_memcache();
                if ($cache) {
+                       # Faves don't happen chronologically, so we need to blow
+                       # ;last cache, too
                        $cache->delete(common_cache_key('user:faves:'.$this->id));
+                       $cache->delete(common_cache_key('user:faves:'.$this->id).';last');
                }
        }
 }