Skip to:
Content

BuddyPress.org


Ignore:
Timestamp:
11/19/2015 05:37:35 AM (5 years ago)
Author:
boonebgorges
Message:

Use a non-global cache group for bp-pages.

Using a global cache group for bp-pages breaks BP_ENABLE_MULTIBLOG
installations.

Props wpdennis.
Fixes #6717.

File:
1 edited

Legend:

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

    r10356 r10365  
    8282    }
    8383
    84     wp_cache_delete( 'directory_pages', 'bp' );
     84    wp_cache_delete( 'directory_pages', 'bp_pages' );
    8585}
    8686add_action( 'save_post', 'bp_core_clear_directory_pages_cache_page_edit' );
     
    9595function bp_core_clear_directory_pages_cache_settings_edit( $option ) {
    9696    if ( 'bp-pages' === $option ) {
    97         wp_cache_delete( 'directory_pages', 'bp' );
     97        wp_cache_delete( 'directory_pages', 'bp_pages' );
    9898    }
    9999}
Note: See TracChangeset for help on using the changeset viewer.