[buddypress-trac] [BuddyPress Trac] #5451: Groups query overhaul

buddypress-trac noreply at wordpress.org
Fri Sep 9 15:54:33 UTC 2016

#5451: Groups query overhaul
 Reporter:  boonebgorges           |       Owner:
     Type:  enhancement            |      Status:  new
 Priority:  high                   |   Milestone:  2.7
Component:  Groups                 |     Version:
 Severity:  normal                 |  Resolution:
 Keywords:  has-patch 2nd-opinion  |

Comment (by boonebgorges):

 In [changeset:"11074"]:
 #!CommitTicketReference repository="" revision="11074"
 Groups: Bust incrementor cache when modifying group taxonomy terms.

 Group taxonomy terms, such as those belonging to `bp_group_type`, can
 affect the results of `BP_Groups_Group::get()` queries. As such,
 changing a group taxonomy term must invalidate the query cache.

 WP's taxonomy API doesn't provide a direct method to determine whether
 the object whose terms are being modified is a BuddyPress group. So
 we infer the object type by looking at the object types that are
 registered for the specified taxonomy; if `bp_group` is one of them, we
 invalidate. This could result in cases where the cache is being purged
 unnecessarily, but better safe than sorry.

 See #5451.

Ticket URL: <https://buddypress.trac.wordpress.org/ticket/5451#comment:22>
BuddyPress Trac <http://buddypress.org/>
BuddyPress Trac

More information about the buddypress-trac mailing list