Notifications
Clear all

wpForo 1.x.x [Closed] wpforo widgets queries faster?

2 Posts
2 Users
1 Reactions
875 Views
Posts: 533
Topic starter
(@central4allgmail-com)
Prominent Member
Joined: 6 years ago

How can i make these quaries run faster ?

They delay the page 5 secs

 

SELECT SUBSTRING_INDEX( GROUP_CONCAT(`postid`
ORDER BY `created` DESC), ',', 1 ) postids
FROM `wp_wpforo_posts`
GROUP BY `topicid`
ORDER BY MAX(`postid`) DESC
LIMIT 0,65
 
  1. wpForoPost->get_posts()
Plugin: wpforo 65 2.5420
SELECT SUBSTRING_INDEX( GROUP_CONCAT(`postid`
ORDER BY `created` DESC), ',', 1 ) postids
FROM `wp_wpforo_posts`
GROUP BY `topicid`
ORDER BY MAX(`postid`) DESC
LIMIT 0,20
 
  1. wpForoPost->get_posts()
Plugin: wpforo 20 2.1536
1 Reply
Robert
Posts: 10591
Admin
(@robert)
Support Team
Joined: 9 years ago

The speed of quires depends on the MySQL/MariaDB version, on your server performance and on the correct indexes of tables. I'd recommend using MySQL 5.7 or MariaDB 10.4.x. Also, you can  decrease the number of items to be selected in widgets and remove all filters. The settings of widgets have a great impact on the queries speed.