NamelessMC

Internet Explorer

Internet Explorer is not supported. Please upgrade to a more modern browser.

Bug Online Staff & Online User
Started by SpecOpsElite

SpecOpsElite

SpecOpsElite

Member
Joined
03 Dec 2019
Last Seen
22 May 2022
Topics
1
Posts
2

In the core module when Staff or Users come online it takes a pretty long time for it to show them online or if they are signed in, it won't say they're online at all.

In the screenshot below the user isn't even logged in or on the website

https://prnt.sc/q6bwlm

SpecOpsElite · over 5 years ago · Last edited: over 5 years ago
Samerton

Samerton

Owner
Joined
30 Mar 2015
Last Seen
22 Nov 2024
Topics
41
Posts
1076

Online staff and users are cached for 2 minutes for performance reasons 🙂

x1
Samerton · over 5 years ago
SpecOpsElite

SpecOpsElite

Member
Joined
03 Dec 2019
Last Seen
22 May 2022
Topics
1
Posts
2

Is it possible for us to speed it up?  We have a pretty powerful machine hosting our site.

SpecOpsElite · over 5 years ago · Last edited: over 5 years ago
Samerton

Samerton

Owner
Joined
30 Mar 2015
Last Seen
22 Nov 2024
Topics
41
Posts
1076

You can change 120 (which is the caching period in seconds) on this line of modules/Core/widgets/OnlineStaff.php and also this line of modules/Core/widgets/OnlineUsers.php

x1
Samerton · over 5 years ago