1
dupek
who is
  • 2010/3/6 12:57

  • dupek

  • Just popping in

  • Posts: 15

  • Since: 2010/1/26


I have strange numbers at Who Is online. Ten minutes ago I went to check my web site and show 20 users online. I check with my server and was only 2 online. Where those numbers come from?. Do not come from my server.
Any way to fix it?.
Thanks

2
ghia
Re: who is
  • 2010/3/6 13:19

  • ghia

  • Community Support Member

  • Posts: 4953

  • Since: 2008/7/3 1


The who is block has its own logic for detecting visitors and maintaining this list.
To function properly, it should be visible at all pages and for all user groups. Sites with low traffic will in general have a higher number reported due to some lagging in cleaning up the users gone offline.

3
andrey3761
Re: who is

I do not know how to explain it in English ...
Query the database to synchronize the list of "Online" is not at all users, and in random order. If you go on the site few users, then the probability that the block "Online" will be synchronized is very low ... The more users visiting the site, the more accurate will be the data.
Problem is solved as follows:

\modules\system\blocks\system_blocks.php

// set gc probabillity to 10% for now..
    
if (mt_rand(1100) < 11) {
        
$online_handler->gc(300);
    }


Replace

$online_handler->gc(300);


Now the power "On-line" will be synchronized each time you refresh the page. This is bad, but the other way for you there.
Sorry for my English))

Login

Who's Online

423 user(s) are online (336 user(s) are browsing Support Forums)


Members: 0


Guests: 423


more...

Donat-O-Meter

Stats
Goal: $100.00
Due Date: Nov 30
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $100.00
Make donations with PayPal!

Latest GitHub Commits