Please or Register to create posts and topics.

Slow queries in Recent Posts Widget

According to my Hosting Provider (Mittwald.de), this query used in the recent_post_widget.php is running too long.. stalling PHP processes and is ultimately crashing my whole site

Line 69:

SELECT MAX(p.id) AS id FROM {$this->asgarosforum->tables->posts} AS p LEFT JOIN {$this->asgarosforum->tables->topics} AS t ON (t.id = p.parent_id) WHERE p.forum_id IN({$available_forums}) AND t.approved = 1 GROUP BY p.parent_id ORDER BY MAX(p.id) DESC LIMIT {$number};”

I’d like to continue using this widget – and it used to work fine until yesterday.

I’ve asked if a higher performance server would fix the issue, and was told “No”. I am a bit at a loss.

Any ideas?

I will check the details and will fix it as soon as possible:

https://github.com/Asgaros/asgaros-forum/issues/364

If you want to support the development of Asgaros Forum, you can leave a good review or donate. Thank you very much!