Notifications
Clear all

wpForo 1.x.x [Closed] Posting & replying slow

11 Posts
4 Users
4 Reactions
1,624 Views
Posts: 9
Topic starter
(@timmeehh)
Active Member
Joined: 3 years ago

Hey guys, hope somebody can help me. I have wpForo running which is great, but posting a new reply takes like 10-15 seconds. I would like to resolve that.

 

Steps I already tried:

 

- Checked the DB for InnoDB /MyISAM structures and fixed them if necessary. 

- Checked the cache settings in wpForo

- Checked the site health page of Wordpress (nothing weird there), just outdated PHP (/zip module being disabled) but that shouldn't matter.

- checked the wpForo debug -> error tab, but nothing there at all.

- Created a new forum & created a post to check if it would be the e-mail sending that would slow things, but on the new empty forum it would still take 10-15 seconds, so that's not the problem.

 

Is there something else I can try? Thanks a lot in advance. 

 

Topic Tags
10 Replies
dimalifragis
Posts: 2611
(@dimalifragis)
Famed Member
Joined: 5 years ago

It is probably your EMAIL server, sending out smtp emails.

Also if anybody else is reading that in the future, please STOP playing around with SQL engine types, i dunno who started this game.

Chris
Posts: 3627
(@chris)
Famed Member
Joined: 3 years ago

Hi @timmeehh,

I guess you need to update MySQL(MariaDB) and PHP versions to the latest.

Posts: 9
Topic starter
(@timmeehh)
Active Member
Joined: 3 years ago

@dimalifragis It's stated here by an admin: https://wpforo.com/community/faq/forum-is-slow/

 

@Chris I updated both and the issue is still here. It seems like it is indeed the email sending that makes things slow. Is there something I can do to make that better? I use wp-mail-smtp, should I use something else?

7 Replies
dimalifragis
(@dimalifragis)
Joined: 5 years ago

Famed Member
Posts: 2611
Posted by: @timmeehh

@dimalifragis It's stated here by an admin: https://wpforo.com/community/faq/forum-is-slow/

 

As i said, this is probably due to EMAIL (smtp/out) mail to your mail server.

https://wpforo.com/community/how-to-and-troubleshooting-2/5-sec-to-reply-is-it-normal/

(@timmeehh)
Joined: 3 years ago

Active Member
Posts: 9

@dimalifragis You are absolutely right. I disabled wp-mail-smtp and replying got quick again. The problem is that if I don't use wp-mail-smtp, sending mails won't work at all. What should I do to get best of both worlds? I obviously need mail sending..

 

Note that I have hundreds of users. Might that be the problem?

dimalifragis
(@dimalifragis)
Joined: 5 years ago

Famed Member
Posts: 2611

@timmeehh 

Well this is tricky to answer. You MIGHT have an issue with sending smtp out, what are the logs of smtp plugin tell you?

If there are NO errors, then the delay is normal because of the ammount of emails as you say. In that case you want to QUEUE your emails, using some 3rd party email service or this:

https://wordpress.org/plugins/gd-mail-queue/

 

(@timmeehh)
Joined: 3 years ago

Active Member
Posts: 9

@dimalifragis Thanks for the reply, this did the trick. Thanks for all the help!

Robert
Admin
(@robert)
Joined: 9 years ago

Support Team
Posts: 10591

@timmeehh ,

In case you don't want to use SMTP solutions, you should use the default mail sending functions. wpForo can detect if the PHP mail() function doesn't work, this is the default WordPress function based on PHP mail() function. You can check it in Forums  > Tools > Debug > Error & Issues Tab, it'll show red marked information. You see that error, you should contact hosting support and ask them to enable it.

The link in the information section goes to: https://www.wpbeginner.com/wp-tutorials/how-to-fix-wordpress-not-sending-email-issue/

(@timmeehh)
Joined: 3 years ago

Active Member
Posts: 9

@Robert Hey Robert, thanks for the reply. I am hosting everything myself, so I was 100% sure that was not the error. wpForo also shows 0 errors, so that's not the problem.

I figured it out (with the help of @dimalifragis), and the problem was that with every reply our site was sending out around 400 emails, which made posting slow. It worked, but again, our server sending out 400 mails takes a few seconds.

I understand that wpForo is not usually used with such a big user base, but this might become a problem for more people in the future. Changing the way emails are sent (for example using a queue as mentioned before) might be way better in a future release.

Our forum has never been faster. Posting now takes 0,4 seconds instead of 20-30.

Chris
(@chris)
Joined: 3 years ago

Famed Member
Posts: 3627

Thank you, @timmeehh for your Suggestion, the Mail Queue is in our to-do list.