wp-comments-post.php very slow (problematic function identified)
-
The following procedure in wp-comments-post.php is hanging for about 2 minutes whenever a comment is posted by a user NOT logged in (no problem if logged-in):
$comment = wp_handle_comment_submission( wp_unslash( $_POST ) ); if ( is_wp_error( $comment ) ) { $data = intval( $comment->get_error_data() ); if ( ! empty( $data ) ) { wp_die( '<p>' . $comment->get_error_message() . '</p>', __( 'Comment Submission Failure' ), array( 'response' => $data, 'back_link' => true ) ); } else { exit; } }
I’ve isolated the problem to this procedure using a timer_stop() function. Less than a second before it, more than two minutes after.
Suggestions? Help?
Thanks.
Viewing 9 replies - 1 through 9 (of 9 total)
Viewing 9 replies - 1 through 9 (of 9 total)
- The topic ‘wp-comments-post.php very slow (problematic function identified)’ is closed to new replies.