We have a client on our dedicated server using Simple:Press 5.2.6 for their forums. Recently we were having some serious performance issues that were bringing down the server. While investigating I discovered a huge amount of mysql resources being used. The wp_options table on his site had 1991 entries in it, which is excessive, and the auto increment value was up to 2,131,387, which is huge. Simple:Press is adding an entry to the database on every failed captcha try for some reason:
a:5:{s:7:”message”;s:73:”Unable to save<br />Post cannot be saved – captcha not properly completed”;s:12:”newtopicname”;s:0:””;s:9:”guestname”;s:13:”CHANEL OUTLET”;s:10:”guestemail”;s:17:”uasobyr@gmail.com”;s:8:”postitem”;s:26:”{snipped}”;}
Even though these are _transient entries, it was causing a huge load on the mysql server from the bots that are hitting his site. Disabling his forums returned the server to a stable state, but he would very much like to have them re-enabled again. Turning off the captcha altogether is obviously not a viable option, since the forum would quickly be overrun by spam, as evidenced by all of those failed attempts. Is there a reason those failed captchas are being logged in the first place? Is there an option to disable logging them? If not, where in the code can I comment out that functionality, and what will the net impact be to the forums?
Thank you.