Skip to:
Content

BuddyPress.org


Ignore:
Timestamp:
01/09/2015 09:39:40 PM (11 years ago)
Author:
johnjamesjacoby
Message:

Switch most cache groups to global using new BP_Component::setup_cache_groups() methods.

This fixes issues with querying BuddyPress data from non-root sites, possibly creating duplicate cache entries across sites, and generally wrecking havoc with persistent cache setups.

Props r-a-y. See #5733.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/bp-members/bp-members-loader.php

    r9323 r9338  
    278278        parent::setup_title();
    279279    }
     280
     281    /**
     282     * Setup cache groups
     283     *
     284     * @since BuddyPress (2.2.0)
     285     */
     286    public function setup_cache_groups() {
     287
     288        // Global groups
     289        wp_cache_add_global_groups( array(
     290            'bp_member_type'
     291        ) );
     292
     293        parent::setup_cache_groups();
     294    }
    280295}
    281296
Note: See TracChangeset for help on using the changeset viewer.