Don't override ORDER for inboxes; it messes up caching

This commit is contained in:
Evan Prodromou 2009-01-19 22:51:03 -05:00
parent 3285e0979d
commit af2fb7dff2

View File

@ -385,8 +385,7 @@ class User extends Memcached_DataObject
'SELECT notice.* ' . 'SELECT notice.* ' .
'FROM notice JOIN notice_inbox ON notice.id = notice_inbox.notice_id ' . 'FROM notice JOIN notice_inbox ON notice.id = notice_inbox.notice_id ' .
'WHERE notice_inbox.user_id = %d '; 'WHERE notice_inbox.user_id = %d ';
# NOTE: we override ORDER $order = null;
$order = 'ORDER BY notice_inbox.created DESC, notice_inbox.notice_id DESC ';
} }
return Notice::getStream(sprintf($qry, $this->id), return Notice::getStream(sprintf($qry, $this->id),
'user:notices_with_friends:' . $this->id, 'user:notices_with_friends:' . $this->id,