Skip to:
Content

BuddyPress.org


Ignore:
Timestamp:
10/06/2022 10:14:05 PM (2 years ago)
Author:
imath
Message:

Add missing global cache groups

Props nickchomey, dcavins

See #8590

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/bp-friends/bp-friends-template.php

    r13301 r13336  
    570570        global $members_template;
    571571
    572         if ( !$friendship_id = wp_cache_get( 'friendship_id_' . $members_template->member->id . '_' . bp_loggedin_user_id() ) ) {
     572        if ( ! $friendship_id = wp_cache_get( 'friendship_id_' . $members_template->member->id . '_' . bp_loggedin_user_id(), 'bp' ) ) {
    573573            $friendship_id = friends_get_friendship_id( $members_template->member->id, bp_loggedin_user_id() );
    574574            wp_cache_set( 'friendship_id_' . $members_template->member->id . '_' . bp_loggedin_user_id(), $friendship_id, 'bp' );
     
    605605        global $members_template;
    606606
    607         if ( !$friendship_id = wp_cache_get( 'friendship_id_' . $members_template->member->id . '_' . bp_loggedin_user_id() ) ) {
     607        if ( ! $friendship_id = wp_cache_get( 'friendship_id_' . $members_template->member->id . '_' . bp_loggedin_user_id(), 'bp' ) ) {
    608608            $friendship_id = friends_get_friendship_id( $members_template->member->id, bp_loggedin_user_id() );
    609609            wp_cache_set( 'friendship_id_' . $members_template->member->id . '_' . bp_loggedin_user_id(), $friendship_id, 'bp' );
     
    642642        global $members_template;
    643643
    644         if ( !$friendship_id = wp_cache_get( 'friendship_id_' . $members_template->member->id . '_' . bp_loggedin_user_id() ) ) {
     644        if ( ! $friendship_id = wp_cache_get( 'friendship_id_' . $members_template->member->id . '_' . bp_loggedin_user_id(), 'bp' ) ) {
    645645            $friendship_id = friends_get_friendship_id( $members_template->member->id, bp_loggedin_user_id() );
    646646            wp_cache_set( 'friendship_id_' . $members_template->member->id . '_' . bp_loggedin_user_id(), $friendship_id, 'bp' );
Note: See TracChangeset for help on using the changeset viewer.