[buddypress-trac] [BuddyPress Trac] #5128: Move user and group last_activity out of wp_usermeta

buddypress-trac noreply at wordpress.org
Wed Mar 5 18:11:17 UTC 2014


#5128: Move user and group last_activity out of wp_usermeta
-------------------------------------+------------------
 Reporter:  boonebgorges             |       Owner:
     Type:  enhancement              |      Status:  new
 Priority:  high                     |   Milestone:  2.0
Component:  Core                     |     Version:
 Severity:  major                    |  Resolution:
 Keywords:  has-patch needs-testing  |
-------------------------------------+------------------

Comment (by r-a-y):

 In [changeset:"8047"]:
 {{{
 #!CommitTicketReference repository="" revision="8047"
 Add object caching when fetching a single user's last activity.

 Previously, BP_Core_User::get_last_activity() was not being cached.
 This resulted in an unnecessary query being run on every page load due
 to the usage of bp_core_record_activity() on the 'wp_head' action.

 This commit caches calls to BP_Core_User::get_last_activity() when a
 single user ID is passed and resets the cache when the user's last
 activity is updated on BP_Core_User::update_last_activity().

 See #5128
 }}}

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


More information about the buddypress-trac mailing list