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

[3.3.x] Support Forum • Re: How to optimize forums to avoid database CPU saturation?

$
0
0
I woiuld 100% turn off all extensions first. Its a very simple first test and you can easily re-enable them.
Some things that have affected the performance of my sites:

* Extensions
* Sessions - check load settings - session length. If its a really long period of time, session table could be huge. Reduce it and then purge all sessions to clear them. (Users will need to log back in.)
* Bots - this one was huge for me, with some bots using huge amounts of system resources crawling the site. I added the following bad bots to my htaccess file:

Code:

BrowserMatchNoCase "libwww-perl" bad_botBrowserMatchNoCase "wget" bad_botBrowserMatchNoCase "LieBaoFast" bad_botBrowserMatchNoCase "Mb2345Browser" bad_botBrowserMatchNoCase "zh-CN" bad_botBrowserMatchNoCase "MicroMessenger" bad_botBrowserMatchNoCase "zh_CN" bad_botBrowserMatchNoCase "Kinza" bad_botBrowserMatchNoCase "Bytespider" bad_botBrowserMatchNoCase "Baiduspider" bad_botBrowserMatchNoCase "Sogou" bad_botBrowserMatchNoCase "Datanyze" bad_botBrowserMatchNoCase "AspiegelBot" bad_botBrowserMatchNoCase "adscanner" bad_botBrowserMatchNoCase "serpstatbot" bad_botBrowserMatchNoCase "spaziodat" bad_botBrowserMatchNoCase "undefined" bad_botBrowserMatchNoCase "PetalBot" bad_botBrowserMatchNoCase "trendictionbot" bad_botBrowserMatchNoCase "SEMrushbot" bad_botBrowserMatchNoCase "AhrefsBot" bad_botOrder Deny,AllowDeny from env=bad_bot

Statistics: Posted by ukautoforums — Thu Jul 25, 2024 2:22 pm



Viewing all articles
Browse latest Browse all 2244

Trending Articles