]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
Some production requirements for making inbox_users.php work
authorroot <root@identi.ca>
Tue, 20 Jan 2009 03:06:34 +0000 (03:06 +0000)
committerroot <root@identi.ca>
Tue, 20 Jan 2009 03:06:34 +0000 (03:06 +0000)
scripts/inbox_users.php

index 7b029e142567ae27b14d410fba7e0eec5989a62b..7d14f0efe6258fd85e8fd5ac591148ebd0b6a7d3 100755 (executable)
@@ -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'));
        }
 }