Closed JonathanReeve closed 8 years ago
Looks like this has mostly fixed itself. I think one of these counts uses total members, and the other uses active members. This is not ideal, but a low-priority problem. Removing bugfix milestone and moving to wishlist.
The member count on the top of the page, in the "All Members" tab, now reads "5,000," while the count at the bottom of the page reads "Viewing 1-20 of 5,002 members."
The database query for
bp_core_get_active_member_count()
isSELECT COUNT(user_id) FROM wp_bp_activity WHERE component = 'members' AND type = 'last_activity';
, which returns5,002
.Two possibilities:
get_transient()
andset_transient()
functions cache this value in different places because they have different transient names and/or expiration times.