[buddypress-trac] [BuddyPress Trac] #5979: `bp_core_userdata_` cache is unnecessary
buddypress-trac
noreply at wordpress.org
Sun Nov 2 21:09:40 UTC 2014
#5979: `bp_core_userdata_` cache is unnecessary
-----------------------------------+------------------
Reporter: johnjamesjacoby | Owner:
Type: defect (bug) | Status: new
Priority: high | Milestone: 2.2
Component: Members | Version:
Severity: normal | Resolution:
Keywords: 2nd-opinion has-patch |
-----------------------------------+------------------
Comment (by johnjamesjacoby):
> and it does not give us a way to save queries by fetching only uncached
users
`WP_User_Query` does this for us by calling `cache_users()` which uses
`_get_non_cached_ids()` to get the missing users, then calling
`update_user_caches()` and `update_meta_cache( 'user', $ids );` on them.
--
Ticket URL: <https://buddypress.trac.wordpress.org/ticket/5979#comment:3>
BuddyPress Trac <http://buddypress.org/>
BuddyPress Trac
More information about the buddypress-trac
mailing list