Skip to:
Content

bbPress.org


Ignore:
Timestamp:
04/15/2013 01:09:37 AM (13 years ago)
Author:
johnjamesjacoby
Message:

Remove the global cache group, and update existing cache group keys to be more descriptive. Fixes issues with cached queries stomping each other on multisite installations. Fixes #2294.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/includes/users/functions.php

    r4783 r4848  
    532532
    533533    $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' );
    535535    if ( empty( $users ) ) {
    536536        $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' );
    538538    }
    539539
Note: See TracChangeset for help on using the changeset viewer.