Reply To: Slow to Post
Cheers for the response and thanks for your time and effort looking into this, much appreciated.
For the test below i set up a hidden forum on my live server.
What happens when you deactivate either/or “Go to first unread” & “Unread posts” plugins you’re using and submit a reply to an affected topic?
- I just went through all the bbpress related plugins and tried different combos and didn’t notice any significant performance differences.
Another test, this time with the ‘Quotes’ plugin disabled submit a reply to an affected topic.
- Using GDPress and had the same results as above
Another, what code and/or plugin are you using to show the user registration in each reply e.g. Join Date: Mar 2009
And another, what code and/or plugin are you using for the counts shown next to the username in each reply e.g Posts: 4529
- Using the function below. Again I disabled and noticed no significant improvement.
function func() {
$roleData = bbp_get_user_role(bbp_get_reply_author_id( $reply_id ));
if($roleData=='bbp_moderator'){
$data='<div class="bbp-author-role">Moderator</div>';
}
$registered = date("M Y", strtotime(get_userdata(bbp_get_reply_author_id())->user_registered));
$post_count = bbp_get_user_reply_count_raw( bbp_get_reply_author_id( $reply_id )) ;
$data.='<div class="bbp-reply-ip"><span class="bbp-author-ip">';
$data.='Join Date: '.$registered;
$data.='<br />';
$data.='Posts: '.$post_count;
$data.='</span></div>';
}
Here’s the results for the first query
And the second query
Something I did notice when testing, was that when I was posting in the new topc I created, posts seemed to be submitting relatively quicker, 2 – 5 secs per post. Though when posting in a thread that had a lot more replies the post submission took a lot longer.
I tried the query plugin you suggested and getting relatively good results everything is < 2 secs, but it only shows the performance of the query results, and doesn’t take into account the time it takes to submit, which is > 10 secs. (unless I’m overlooking something??)
Thanks