Changeset 4848 for trunk/includes/users/functions.php
- Timestamp:
- 04/15/2013 01:09:37 AM (13 years ago)
- File:
-
- 1 edited
-
trunk/includes/users/functions.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/includes/users/functions.php
r4783 r4848 532 532 533 533 $key = $wpdb->prefix . '_bbp_subscriptions'; 534 $users = wp_cache_get( 'bbp_get_topic_subscribers_' . $topic_id, 'bbpress ' );534 $users = wp_cache_get( 'bbp_get_topic_subscribers_' . $topic_id, 'bbpress_users' ); 535 535 if ( empty( $users ) ) { 536 536 $users = $wpdb->get_col( "SELECT user_id FROM {$wpdb->usermeta} WHERE meta_key = '{$key}' and FIND_IN_SET('{$topic_id}', meta_value) > 0" ); 537 wp_cache_set( 'bbp_get_topic_subscribers_' . $topic_id, $users, 'bbpress ' );537 wp_cache_set( 'bbp_get_topic_subscribers_' . $topic_id, $users, 'bbpress_users' ); 538 538 } 539 539
Note: See TracChangeset
for help on using the changeset viewer.