[buddypress-trac] [BuddyPress] #2651: [patch] Exclude and include parameters for bp_has_forum_topic_posts()

buddypress-trac at lists.automattic.com buddypress-trac at lists.automattic.com
Tue Nov 9 13:04:23 UTC 2010

#2651: [patch] Exclude and include parameters for bp_has_forum_topic_posts()
 Reporter:  boonebgorges  |       Owner:  boonebgorges
     Type:  enhancement   |      Status:  new         
 Priority:  normal        |   Milestone:  1.3         
Component:  Forums        |     Version:              
 Keywords:                |  

Comment(by boonebgorges):

 Note to self that this patch causes problems with the way that bbPress
 caches queries. For some reason, when the BB_Query query args contain a
 post_id parameter (eg '4' for include and '-4' for exclude), bbPress isn't
 able to locate the cached version of the query results using the key that
 it generates from an md5 hash of the query itself. Yet the results
 actually are in the cache, so when bbPress merges the query results with
 the contents of the cache, you get duplicates of all posts.

 A strongarm solution is to clear the bb_post cache when include or exclude
 arguments are passed. But I would like to investigate some more to see if
 maybe this is a bug with bbPress that could be fixed at the source (or if
 there's something wrong with the way I'm trying to pass arguments to

Ticket URL: <http://trac.buddypress.org/ticket/2651#comment:1>
BuddyPress <http://buddypress.org/>

More information about the buddypress-trac mailing list