summaryrefslogtreecommitdiff
path: root/classes
diff options
context:
space:
mode:
authorEvan Prodromou <evan@zhora.(none)>2009-01-19 22:51:03 -0500
committerEvan Prodromou <evan@zhora.(none)>2009-01-19 22:51:03 -0500
commitaf2fb7dff2c9f94777d9d262f7a6d0427da65217 (patch)
treefc9fe76cd1705290c3405f095bed9f1b5dcc62ca /classes
parent3285e0979dc7e475291f1a8a0931868591fe0de7 (diff)
Don't override ORDER for inboxes; it messes up caching
Diffstat (limited to 'classes')
-rw-r--r--classes/User.php3
1 files changed, 1 insertions, 2 deletions
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,