A better "Who's online"

Discuss features as they are added to the new version. Give us your feedback. Don't post bug reports, feature requests, support questions or suggestions here.
Forum rules
Discuss features as they are added to the new version. Give us your feedback. Don't post bug reports, feature requests, support questions or suggestions here. Feature requests are closed.
User avatar
psoTFX
Registered User
Posts: 1984
Joined: Tue Jul 03, 2001 8:50 pm
Contact:

Re: A better "Who's online"

Post by psoTFX »

Confusion reigns :)

In 2.0.x the sessions are updated periodically. They are not necessarily updated each page view. This was done to minimise impact on the SQL server. As it happens that load doesn't appear to be terribly great in practice (at least not for the average installation). Thus for 2.2.x we update either periodically or upon a page change. This way hitting refresh on the same page won't bog down the server too much with constant updates ... while improving the "tracking" of visitors.

Additionally in 2.0.x the "Who is online" time was hardcoded for five minutes. That's "fine" for most forums but for busier installs five minutes can equate to dozens, hundreds of users. Similarly for smaller forums it may account for one or two users :) Thus in 2.2.x the time is admin defineable. Equally you can disable viewonline (on the index and other pages) should you have a particularly busy forum.

modenaf1
Registered User
Posts: 103
Joined: Sun Nov 16, 2003 8:29 pm

Re: A better "Who's online"

Post by modenaf1 »

psoTFX wrote:Confusion reigns :)

In 2.0.x the sessions are updated periodically. They are not necessarily updated each page view. This was done to minimise impact on the SQL server. As it happens that load doesn't appear to be terribly great in practice (at least not for the average installation). Thus for 2.2.x we update either periodically or upon a page change. This way hitting refresh on the same page won't bog down the server too much with constant updates ... while improving the "tracking" of visitors.

Additionally in 2.0.x the "Who is online" time was hardcoded for five minutes. That's "fine" for most forums but for busier installs five minutes can equate to dozens, hundreds of users. Similarly for smaller forums it may account for one or two users :) Thus in 2.2.x the time is admin defineable. Equally you can disable viewonline (on the index and other pages) should you have a particularly busy forum.
Thank you. That clears things up quite a bit.
Banned

Post Reply