Forums
-
- Forum
- Posts
-
- Installation
- 28,255
- Troubleshooting
- 61,779
- Themes
- 10,301
- Plugins
- 15,221
- Requests & Feedback
- 14,830
- Showcase
- 3,252
-
OMG. This is insane.
Go edit your front-page.php, forum.php and view.php templates.
Change
topic_last_poster();
to
echo $topic->topic_last_poster_name;
Cuts mysql queries in half. I went from 50 to under 20.
The data is already in the retrieved topics in memory, there’s no need to reload all the userdata.
See also: WordPress.org • bbPress.org • BuddyPress.org • Matt • Blog RSS