]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
Cache the repeat_of query for noticelists
authorEvan Prodromou <evan@status.net>
Mon, 8 Aug 2011 14:51:13 +0000 (10:51 -0400)
committerEvan Prodromou <evan@status.net>
Mon, 8 Aug 2011 14:51:13 +0000 (10:51 -0400)
lib/noticelist.php

index 148f428edf0955420c58a7510b70c31ce1bf3def..7ec5be1c0ff169f9e86b9d8980846bfde66f7c7c 100644 (file)
@@ -143,6 +143,7 @@ class NoticeList extends Widget
        
        if (!empty($p)) {
                Memcached_DataObject::pivotGet('Fave', 'notice_id', $ids, array('user_id' => $p->id));
+               Memcached_DataObject::pivotGet('Notice', 'repeat_of', $ids, array('profile_id' => $p->id));
        }
     }
 }