Please or Register to create posts and topics.

Online user statistic problem

Page 1 of 2Next

Hi

in my site always at fourm page, online user statistic show 53 person and list my users! this number do not change any time.

Can you help me?

Thank you

This picture!

just 1 user is online but always show 53 users

I think once user does not logout, count as online user even if user does not be on forum page. is that true?

Uploaded files:
  • 1-3.PNG

Hey @nader_baradari,

the statistics of Asgaros Forum only counts users that were online and active within the last 10 minutes. So it is working with timestamps. Whenever the website is loading, this function will check if a user is logged in and saves a timestamp to this user. The statistic itself will calculate if a user was active within this 10 minutes period.

It is still possible that your statistic is not working correctly. It could be that you are using caching on this page and it always shows old data that is saved in a cache.

Do you use any caching plugin or server side caching tool?

Does your statistic change at all?

Nader_Baradari has reacted to this post.
Nader_Baradari
Need professional help with Asgaros Forum? Book an appointment with us at domra Web Solutions for setup and customization services. Learn more about our Toolbox for Asgaros Forum plugin to enhance your forum experience.

Thank you for your respond

 

I use Wp-Rocket plugin for catching and cloud flare cdn. I disable them but not change any thing

when a new user register, online statistic add one number but previous member show on statistic even they do not online

Can you please share the URL to your forum?

Nader_Baradari has reacted to this post.
Nader_Baradari
Need professional help with Asgaros Forum? Book an appointment with us at domra Web Solutions for setup and customization services. Learn more about our Toolbox for Asgaros Forum plugin to enhance your forum experience.

Yes, of course

https://shirazneowave.ir/forum/

Hey @nader_baradari,

it seems like wp-rocket and cloudflare is still activated on your forum page. Please follow the instructions and deactivate Caching and also CDN for your forum page:

https://docs.wp-rocket.me/article/677-turning-off-additional-options-on-specific-page-post

To make sure that the whole forum will not be cached you should also add /forum/(.*) this here:

https://docs.wp-rocket.me/article/54-exclude-pages-from-the-cache

And finally clear the cache:

https://docs.wp-rocket.me/article/53-clear-wp-rocket-cache

Since the timestamps are valid for 10 minutes you should make sure to wait at least that time.

 

Nader_Baradari has reacted to this post.
Nader_Baradari
Need professional help with Asgaros Forum? Book an appointment with us at domra Web Solutions for setup and customization services. Learn more about our Toolbox for Asgaros Forum plugin to enhance your forum experience.

I did all of them but nothing change.

Count of Guess user is correct. (I check it some time)

count of user when a new user register or user login and logout is correct too.

many of old user always count as online but they do not!

Ok. Please keep in mind that you should keep caching deactivated for the forum,

Can you please check the wp_usermeta table in your database. There you should find the meta key asgarosforum_online_timestamp. Please check if the date seems to be correct. It could be that through an error the timestamps are not set up correctly.

 

Uploaded files:
  • Screenshot_20201103_160237.png
Nader_Baradari has reacted to this post.
Nader_Baradari
Need professional help with Asgaros Forum? Book an appointment with us at domra Web Solutions for setup and customization services. Learn more about our Toolbox for Asgaros Forum plugin to enhance your forum experience.

I checked wp_usermeta but i do not have asgarosforum_online_timestamp in meta key!

I add it but not work

wp_usermeta` SET `meta_key` = 'asgarosforum_online_timestamp' WHERE `wp_usermeta`.`umeta_id` = 21;

Page 1 of 2Next