[buddypress-trac] [BuddyPress Trac] #5414: Object cache all item counts associated with the adminbar

buddypress-trac noreply at wordpress.org
Thu Mar 6 08:58:39 UTC 2014


#5414: Object cache all item counts associated with the adminbar
-------------------------+------------------
 Reporter:  r-a-y        |       Owner:
     Type:  enhancement  |      Status:  new
 Priority:  normal       |   Milestone:  2.0
Component:  Core         |     Version:
 Severity:  normal       |  Resolution:
 Keywords:  has-patch    |
-------------------------+------------------
Changes (by r-a-y):

 * keywords:   => has-patch


Comment:

 `group_invite_count.01.patch` adds object caching to the group invite
 count for a user.

 What I need feedback on is the cache callback functions.  As outlined in
 the patch, I had to create three functions in bp-groups-cache.php to clear
 the cache because the parameters in our API hooks are inconsistent.

 What I'd rather do is hardcode the `wp_cache_delete()` calls directly
 where they are needed instead of using the hooked functions, but this
 isn't how we've done things in the past.

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


More information about the buddypress-trac mailing list