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
with the
After that, the server runs better. Let me ask: will this change cause any harm?
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