PDA

View Full Version : Troubleshooting question


Lionel
08-19-2005, 04:35 AM
For the past few months, my forums have been very slow when posting or editing a fairly long thread. I finally have decided to troubleshoot. I looked at your code in editpost.php and I see that at build post, you are going to every word of the post to check for obscene words for automatic warning. Could it be the reason of the time it takes to post or to edit a thread?

I disabled the vboption for automatic warning, and I don't know if it's my imagination, but speed improved a lot.

Now, I have not upgraded for a while and there were like 1000 + posts in the original thread. I don't know if anyone else had that issue, or if it's one, and if it is, has it been addressed? I love this hack and I am crossing my fingers that it is not the culprit.

sv1cec
08-19-2005, 08:05 AM
If I remember correctly, AWS is NOT performing any check of its own. The censorship check is done by vB itself, and all I do is make a comparison between the text before and after the censorship is applied. If these two do not match, then AWS issues a warning. So, I can't think that your speed is so much affected by AWS.

One thing that may affect your speed, is when a censored word is found, and AWS underlines that word, in order to create the record, which shows you the original post (how the post was, before being censored). This can be removed if you so want, but again, I do not think it is this, that slows down your system.