Skip to:
Content

BuddyPress.org


Ignore:
Timestamp:
01/09/2015 09:39:40 PM (12 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-blogs/bp-blogs-loader.php

    r9308 r9338  
    273273
    274274        /**
     275         * Setup cache groups
     276         *
     277         * @since BuddyPress (2.2.0)
     278         */
     279        public function setup_cache_groups() {
     280
     281                // Global groups
     282                wp_cache_add_global_groups( array(
     283                        'blog_meta'
     284                ) );
     285
     286                parent::setup_cache_groups();
     287        }
     288
     289        /**
    275290         * Set up the tracking arguments for the 'post' post type.
    276291         *
Note: See TracChangeset for help on using the changeset viewer.