PDA

View Full Version : Wordpress comments limit per page to decrease load on server



Fli
07-08-2015, 03:01 PM
Hello,

Wordpress blog posts can have comments enabled and SPAM bots may add thousands and thousands of posts.

So to load such blog post page can take alot of time (procesor time).

On the hosting such Wordpress page can be unnecessarilly overloading server because of loading too much comments.

Here are tips to decrease load on such overspammed page:

1. Set pagging of the comments in Wordpress settings. It can be somewhere on Discussion/Comments page in Wordpress Settings.
One can set this in mysql database directly, i login PHPMyAdmin, click wp_options table, Show all rows and find row with "page_comments" it was empty in my case, so i set to 1
This alone will enable paging, default 50 comments per page, to read more comments, one should click link to show older comments. If want to set different number of comments per page, edit setting "comments_per_page"

2. Delete wordpress comments, some ideas here (http://internetlifeforum.com/wordpress/3069-how-delete-all-comments-not-approved-spam-trashed-unapproved/)

3. Apply good antispam plugin. I use plugin "Anti-Spam (https://wordpress.org/plugins/anti-spam/)"

zubairkhan
07-30-2020, 09:39 AM
Thanks for sharing. Yes, I am also frustrated with spammy comments. I acknowledge comments but only that comments that provide value to my visitors, not spam. Unfortunately, i have disabled my comment section and that to this helpful guide about disable comments in WordPress (https://codup.co/disable-comments-in-wordpress/).

kumkum
08-09-2021, 03:41 PM
Most of the time spammers use comments to send spam mails and it will decrease the domain reputation and also your server get blacklisted.
To resolve this you can either use captcha or allow comments to doonlyregistered users. These are basic things.

You can also check this to Prevent Spam Comments (https://hoststud.com/resources/steps-to-prevent-spam-comments-in-wordpress-blog.641/)in Wordpress blog.