Skip to:
Content

BuddyPress.org


Ignore:
Timestamp:
01/08/2015 01:24:29 AM (10 years ago)
Author:
johnjamesjacoby
Message:

Deprecate bp_core_add_global_group() and move it to BP_Core::setup_cache_groups().

Also introduce bp_cache_get/set/delete functions for appending the network ID to keys in global cache groups.

See #5733.

File:
1 edited

Legend:

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

    r9308 r9313  
    252252        }
    253253    }
     254
     255    /**
     256     * Setup cache groups
     257     *
     258     * @since BuddyPress (2.2.0)
     259     */
     260    public function setup_cache_groups() {
     261
     262        // Global groups
     263        wp_cache_add_global_groups( array(
     264            'bp'
     265        ) );
     266
     267        parent::setup_cache_groups();
     268    }
    254269}
    255270
Note: See TracChangeset for help on using the changeset viewer.