summaryrefslogtreecommitdiff
path: root/scripts/inbox_users.php
diff options
context:
space:
mode:
authorroot <root@identi.ca>2009-01-20 03:06:34 +0000
committerroot <root@identi.ca>2009-01-20 03:06:34 +0000
commitb28e11a7e3ae071b127694c498f08cc1fddfa4b0 (patch)
tree4b46bded48e5d40268130a9bc0d1d8f8b236e175 /scripts/inbox_users.php
parentd1cbd756366580962e58bcc8216dd88fe0b5ef2f (diff)
Some production requirements for making inbox_users.php work
Diffstat (limited to 'scripts/inbox_users.php')
-rwxr-xr-xscripts/inbox_users.php2
1 files changed, 2 insertions, 0 deletions
diff --git a/scripts/inbox_users.php b/scripts/inbox_users.php
index 7b029e142..7d14f0efe 100755
--- a/scripts/inbox_users.php
+++ b/scripts/inbox_users.php
@@ -82,6 +82,7 @@ foreach ($ids as $id) {
'FROM notice_inbox ' .
'WHERE user_id = ' . $user->id . ' ' .
'AND notice_id = notice.id) ' .
+ 'ORDER BY notice.created DESC ' .
'LIMIT 0, 1000');
if (is_null($result) || $result === false) {
@@ -105,5 +106,6 @@ foreach ($ids as $id) {
if ($cache) {
$cache->delete(common_cache_key('user:notices_with_friends:' . $user->id));
+ $cache->delete(common_cache_key('user:notices_with_friends:' . $user->id . ';last'));
}
}