[buddypress-trac] [BuddyPress Trac] #3590: Who's online widget quick to show me not online.

buddypress-trac noreply at wordpress.org
Wed Sep 10 13:55:54 UTC 2014


#3590: Who's online widget quick to show me not online.
---------------------------+-----------------------------
 Reporter:  pengume        |       Owner:
     Type:  enhancement    |      Status:  reopened
 Priority:  high           |   Milestone:  Future Release
Component:  Members        |     Version:
 Severity:  trivial        |  Resolution:
 Keywords:  needs-refresh  |
---------------------------+-----------------------------

Comment (by boonebgorges):

 tomlandon_author - Thanks for the suggestions. The limiting factor here is
 that we don't really have any reliable indicator that tells us whether
 someone is *actually* online. The only thing we have is their last_active
 value, which is updated every 5 minutes.

 One consequence is that if you switch the "who's online" query to look for
 users whose last_active is less than 5 minutes ago, you'll miss a lot of
 members who are legitimately active. Take the following situation:

 10:15 - Boone logs in. Last activity set to 10:15. Boone keeps browsing,
 but last_active is not bumped
 10:17 - Tom logs in and sees the Who's Online widget. If it's set to look
 at users who have been recorded as active within the last 5 seconds, Boone
 will *not* show up.
 10:20 - Boone continues browsing, and last_active is bumped

 > Question: Where can i change the time value (5 minutes = 300000
 milliseconds) for the reload? Will it do the reload "inside" the widget
 (example: AJAX/JS or equal) or do i have to reload the page?

 Filter 'bp_user_query_online_interval', line 250
 https://buddypress.trac.wordpress.org/browser/tags/2.0.2/bp-core/bp-core-
 classes.php#L243

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


More information about the buddypress-trac mailing list