Skip to:
Content

bbPress.org

Opened 9 years ago

Closed 9 years ago

#1794 closed defect (fixed)

Add cache to bbp_get_topic_subscribers

Reported by: MZAWeb Owned by:
Milestone: 2.1 Priority: normal
Severity: normal Version: 2.0
Component: Tools - Code Improvements Keywords: has-patch
Cc:

Description

bbp_get_topic_subscribers makes a custom mysql query to get the data:

$users = $wpdb->get_col( "SELECT user_id FROM {$wpdb->usermeta} WHERE meta_key = '_bbp_subscriptions' and FIND_IN_SET('{$topic_id}', meta_value) > 0" );

Patch adds cache to that query, and clears the cache in bbp_add_user_subscription and bbp_remove_user_subscription

Attachments (1)

bbp_get_topic_subscribers_cache.diff (1.8 KB) - added by MZAWeb 9 years ago.

Download all attachments as: .zip

Change History (3)

#1 @johnjamesjacoby
9 years ago

  • Milestone changed from Awaiting Review to 2.1

#2 @johnjamesjacoby
9 years ago

  • Resolution set to fixed
  • Status changed from new to closed

(In [3809]) Add caching to topic subscription queries. Props MZAWeb. Fixes #1794.

Note: See TracTickets for help on using tickets.