Previous Thread
Next Thread
Print Thread
Hop To
Joined: Jun 2006
Posts: 197
E
enthusiast
enthusiast
E Offline
Joined: Jun 2006
Posts: 197
I notice that I have many user who just let their browser on the "Checking who's online" page.
I wonder how much it would load my server and if there is any way I can limit the query there, like with "Search" feature when you can search only after xx seconds.

I'm using 6.5.1.1

Thank you for any help on that.

Joined: Jan 2004
Posts: 74
G
journeyman
journeyman
G Offline
Joined: Jan 2004
Posts: 74
This would require an edit of the refresh time in the online.php script. It it set to refresh every 60 seconds by default. Open the online.php file and search for "refresh". You'll see the 60 on the same line. Change it to how many ever seconds you would like the page to refresh.


Visit the real Threadsdev at http://www.threadsdev.net
Joined: Jun 2006
Posts: 197
E
enthusiast
enthusiast
E Offline
Joined: Jun 2006
Posts: 197
Thank you DLWebmaestro.
I found two lines with "60" on it. One I'm sure is the one you talked about:
$html -> send_header($ubbt_lang['ONLINE_HEAD'],$Cat,"<meta http-equiv=\"Refresh\" content=\"600;url={$config['phpurl']}/online.php?Cat=$Cat\" />",$user);
I changed to 600

Now would you know what the other line does?:
$Outdated = $html -> get_date() - ($config['onlinetime'] * 60 );


Thank you for your help.

Joined: Jun 2006
Posts: 742
enthusiast
enthusiast
Joined: Jun 2006
Posts: 742
That second bit purgest outdated items from the online table....thus if you show activity for 10 minutes, it purges any records older than 10 minutes (so your online list is accurate).

Don't alter that one.


Joshua Pettit
Web Developer
www.ThreadsDev.net | www.JoshuaPettit.com

Link Copied to Clipboard
ShoutChat
Comment Guidelines: Do post respectful and insightful comments. Don't flame, hate, spam.
Recent Topics
Bots
by Outdoorking - 04/13/2024 5:08 PM
Can you add html to language files?
by Baldeagle - 04/07/2024 2:41 PM
Do I need to rebuild my database?
by Baldeagle - 04/07/2024 2:58 AM
This is not a bug, but a suggestion
by Baldeagle - 04/05/2024 11:25 PM
Is UBB.threads still going?
by Aaron101 - 04/01/2022 8:18 AM
Who's Online Now
4 members (Nightcrawler, Outdoorking, Ruben, 1 invisible), 872 guests, and 274 robots.
Key: Admin, Global Mod, Mod
Random Gallery Image
Latest Gallery Images
Los Angeles
Los Angeles
by isaac, August 6
3D Creations
3D Creations
by JAISP, December 30
Artistic structures
Artistic structures
by isaac, August 29
Stones
Stones
by isaac, August 19
Powered by UBB.threads™ PHP Forum Software 8.0.0
(Preview build 20230217)