[buddypress-trac] [BuddyPress Trac] #6865: `bp_activity_get_actions()` should only sort when necessary

buddypress-trac noreply at wordpress.org
Fri Feb 5 03:37:28 UTC 2016


#6865: `bp_activity_get_actions()` should only sort when necessary
----------------------------------------+---------------------------
 Reporter:  boonebgorges                |       Owner:  boonebgorges
     Type:  enhancement                 |      Status:  closed
 Priority:  normal                      |   Milestone:  2.5
Component:  Component - Activity        |     Version:
 Severity:  normal                      |  Resolution:  fixed
 Keywords:  has-patch needs-unit-tests  |
----------------------------------------+---------------------------
Changes (by boonebgorges):

 * owner:   => boonebgorges
 * status:  new => closed
 * resolution:   => fixed


Comment:

 In [changeset:"10515"]:
 {{{
 #!CommitTicketReference repository="" revision="10515"
 Sort activity actions when they're added, instead of when they're fetched.

 Sorting activity actions can be an expensive process, so should not be
 done
 any more frequently than necessary. And it's only necessary to sort when a
 new action has been added. So instead of sorting in
 `bp_activity_get_actions()`,
 we now do it in `bp_activity_set_action()`.

 Props boonebgorges, imath.
 Fixes #6865.
 }}}

--
Ticket URL: <https://buddypress.trac.wordpress.org/ticket/6865#comment:8>
BuddyPress Trac <http://buddypress.org/>
BuddyPress Trac


More information about the buddypress-trac mailing list