• 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
#2
Maybe try adding this line to the library/config.php file to increase the PHP timeout:

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

mjp

Well-known member
#3
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.
 

Mike

XenForo developer
Staff member
#6
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.