• This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn more.

Fixed  Timeout when using Spam Cleaner

Jake Bunce

XenForo moderator
Staff member
Maybe try adding this line to the library/config.php file to increase the PHP timeout:

ini_set('max_execution_time', 500);
(that's 500 seconds)


Well-known member
You're not going to be able to change that execution time on most shared hosts, even with a custom php.ini or ini_set. I think you'll find most of the big hosts cap that at 30, and for good reason when hundreds (or thousands) of sites run on one server.

I think the question is really why is that function taking more than 30 seconds to execute?

I just tried it (IP check only) on a shared HostGator account (where max_execution_time = 30) and it times out as well.


XenForo developer
Staff member
I believe this should be fixed now. I have sped up the IP lookup significantly. MySQL has some absolutely ridiculous sub-query performance issues, so ultimately it's actually a lot faster to rewrite it as 2 separate queries.