Skip to:

Opened 9 years ago

Closed 9 years ago

#6453 closed defect (bug) (worksforme)

Triansient doesn't clear in bp_core_get_active_member_count

Reported by: timfield's profile timfield Owned by:
Milestone: Priority: normal
Severity: normal Version: 2.2.3
Component: Members Keywords: reporter-feedback


  function bp_core_get_active_member_count() {

in buddypress/bp-members/bp-members-functions.php

has the line

   set_transient( 'bp_active_member_count', $count);

It should be ( or some other sensible time-out ) otherwise this become inaccurate over time.

   set_transient( 'bp_active_member_count', $count, 1 * DAY_IN_SECONDS );

Change History (3)

#1 @boonebgorges
9 years ago

  • Keywords reporter-feedback added

Thanks for the report, timfield. Passive timing out of transients are really for data whose up-to-dateness doesn't matter too much. For counts - where it *does* matter - we use a more aggressive cache-busting strategy. That is, when a new user joints the site, the 'bp_active_member_count' transient should be deleted altogether. If this is not happening on your site, can you please give details? Is it when a new user joins, when a user is deleted, when a user is marked as spam?

#2 @DJPaul
9 years ago

@timfield Did you see Boone's comment on your issue? Do you have any feedback?

#3 @DJPaul
9 years ago

  • Milestone Awaiting Review deleted
  • Resolution set to worksforme
  • Status changed from new to closed

Closing this due to lack of feedback and clarity over the potential issue.

Note: See TracTickets for help on using tickets.