Quantcast
Channel: phpBB.com
Viewing all articles
Browse latest Browse all 2802

[3.3.x] Support Forum • Gues session requests cause mysql to use high CPU

$
0
0
My forum has a lot of visitors, maybe I was attacked. I checked and found that MySQL is using a lot of CPU. I checked and found that the "SELECT COUNT(session_id) AS sessions" statement is used a lot. I edited the session.php file at line 798, replacing the

Code:

if (!$bot)

with the

Code:

if ($this->data['user_id'] != ANONYMOUS && !$bot)

After that, the server runs better. Let me ask: will this change cause any harm?

Statistics: Posted by nncuong — Wed Jun 11, 2025 9:27 am



Viewing all articles
Browse latest Browse all 2802

Trending Articles