]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
fix caching of faves by own, other
authorEvan Prodromou <evan@controlyourself.ca>
Sun, 5 Jul 2009 15:32:57 +0000 (11:32 -0400)
committerEvan Prodromou <evan@controlyourself.ca>
Sun, 5 Jul 2009 15:32:57 +0000 (11:32 -0400)
classes/Fave.php
classes/User.php

index f4cf6256ff314af7aca2b5b7867c5dca011b8177..c3ec62dcf0176c7166d4f2dbb5e69e9791b86a2e 100644 (file)
@@ -42,7 +42,7 @@ class Fave extends Memcached_DataObject
         $ids = Notice::stream(array('Fave', '_streamDirect'),
                               array($user_id, $own),
                               ($own) ? 'fave:ids_by_user_own:'.$user_id :
-                              'fave:by_user:'.$user_id,
+                              'fave:ids_by_user:'.$user_id,
                               $offset, $limit);
         return $ids;
     }
index 62a3f8a66e214835548ceec645e021587e54a1bd..04b38a0d2223ef7d240768ec0de6282d03bc51a8 100644 (file)
@@ -491,6 +491,8 @@ class User extends Memcached_DataObject
             // ;last cache, too
             $cache->delete(common_cache_key('fave:ids_by_user:'.$this->id));
             $cache->delete(common_cache_key('fave:ids_by_user:'.$this->id.';last'));
+            $cache->delete(common_cache_key('fave:ids_by_user_own:'.$this->id));
+            $cache->delete(common_cache_key('fave:ids_by_user_own:'.$this->id.';last'));
         }
     }