[wp-hackers] Very slow comment posting

Alexander Beutl xel at netgra.de
Thu May 8 19:59:07 GMT 2008


Ok - here is an idea how to find it:
First check the wp-comments-post.php.
Do the following:
before wp_redirect_location($location); (at the very end of the file)
add
if(get_option('mytimer')) update_option('mytimer',timer_stop(););
else add_option('mytimer', timer_stop(), '', 'no');

then go to you phpMyAdmin (or whatever you use)
and inside the options table look for the option mytimer.
this will be the time it took for going through the wp-comments-post.php.
Then you will know if the bottleneck is inside this file.

If so move the lines up and up and up until the time is reasonable again.
Then you will know where that bottleneck is.

At least this is what I would do.

2008/5/8, Jamie <intoxination at gmail.com>:
>
> Austin Matzko wrote:
>
> > Perhaps it's slowed in the wp_allow_comment function as it looks
> > through 150,000 comments for a duplicate.
> >
> >
>
> It only checks for duplicates in the current post.
> _______________________________________________
> wp-hackers mailing list
> wp-hackers at lists.automattic.com
> http://lists.automattic.com/mailman/listinfo/wp-hackers
>


More information about the wp-hackers mailing list