[buddypress-trac] [BuddyPress] #2421: bp_get_forum_topic_count causing massive memory requirements and timeouts
buddypress-trac at lists.automattic.com
buddypress-trac at lists.automattic.com
Fri Jun 4 20:24:17 UTC 2010
#2421: bp_get_forum_topic_count causing massive memory requirements and timeouts
--------------------+-------------------------------------------------------
Reporter: 3sixty | Owner:
Type: defect | Status: new
Priority: normal | Milestone: 1.3
Component: Core | Keywords:
--------------------+-------------------------------------------------------
Comment(by r-a-y):
As reported in the forum thread, commenting out the
do_action('bbpress_init') line in the bp_forums_total_topic_count()
function fixes this:
http://pastebin.com/rqGPKxrD
The alternative is to rewrite the function to the following:
{{{
function bp_forums_total_topic_count() {
$query = new BP_Forums_Template_Forum;
$count = $query->total_topic_count;
return $count;
}
}}}
--
Ticket URL: <http://trac.buddypress.org/ticket/2421#comment:1>
BuddyPress <http://buddypress.org/>
BuddyPress
More information about the buddypress-trac
mailing list