Forums
-
- Forum
- Posts
-
- Installing BuddyPress
- 24,019
- How-to & Troubleshooting
- 129,643
- Creating & Extending
- 25,793
- Requests & Feedback
- 9,497
- Third Party Plugins
- 9,793
- Showcase
- 3,316
- Ideas
- 1,383
- Miscellaneous
- 9,180
-
bp_forum_pagination_count() uses the $forum_template global, which is why it outputs instanteously.
bp_get_forum_topic_count() calls bp_forums_total_topic_count(), which has a do_action( ‘bbpress_init’ ) line. Try commenting out this line in /bp-forums.php and see if the memory problems persist.
If it the memory problems persist, then it’s a problem with the BB_Query instance, which I have no idea how to debug!