From af2fb7dff2c9f94777d9d262f7a6d0427da65217 Mon Sep 17 00:00:00 2001 From: Evan Prodromou Date: Mon, 19 Jan 2009 22:51:03 -0500 Subject: Don't override ORDER for inboxes; it messes up caching --- classes/User.php | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'classes/User.php') diff --git a/classes/User.php b/classes/User.php index 32d5bedde..5dab5c701 100644 --- a/classes/User.php +++ b/classes/User.php @@ -385,8 +385,7 @@ class User extends Memcached_DataObject 'SELECT notice.* ' . 'FROM notice JOIN notice_inbox ON notice.id = notice_inbox.notice_id ' . 'WHERE notice_inbox.user_id = %d '; - # NOTE: we override ORDER - $order = 'ORDER BY notice_inbox.created DESC, notice_inbox.notice_id DESC '; + $order = null; } return Notice::getStream(sprintf($qry, $this->id), 'user:notices_with_friends:' . $this->id, -- cgit v1.2.3-54-g00ecf