Skip to:
Content

BuddyPress.org

Changeset 10365 for trunk


Ignore:
Timestamp:
11/19/2015 05:37:35 AM (4 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.

Location:
trunk/src/bp-core
Files:
2 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}
  • trunk/src/bp-core/bp-core-functions.php

    r10356 r10365  
    544544
    545545    // Look in cache first.
    546     $pages = wp_cache_get( 'directory_pages', 'bp' );
     546    $pages = wp_cache_get( 'directory_pages', 'bp_pages' );
    547547
    548548    if ( false === $pages ) {
     
    588588        }
    589589
    590         wp_cache_set( 'directory_pages', $pages, 'bp' );
     590        wp_cache_set( 'directory_pages', $pages, 'bp_pages' );
    591591    }
    592592
Note: See TracChangeset for help on using the changeset viewer.