Skip to:
Content

BuddyPress.org

Changeset 3133


Ignore:
Timestamp:
07/19/2010 04:05:57 AM (15 years ago)
Author:
johnjamesjacoby
Message:

Add 'bp' to global cache group

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/1.2/bp-core.php

    r3105 r3133  
    21212121
    21222122/**
     2123 * bp_core_add_global_group()
     2124 *
     2125 * Add's 'bp' to global group of network wide cachable objects
     2126 *
     2127 * @package BuddyPress Core
     2128 */
     2129function bp_core_add_global_group() {
     2130    wp_cache_init();
     2131
     2132    if ( function_exists( 'wp_cache_add_global_groups' ) )
     2133        wp_cache_add_global_groups( array( 'bp' ) );
     2134}
     2135add_action( 'init', 'bp_core_add_global_group' );
     2136
     2137/**
    21232138 * bp_core_clear_user_object_cache()
    21242139 *
Note: See TracChangeset for help on using the changeset viewer.