Skip to:
Content

BuddyPress.org


Ignore:
Timestamp:
09/20/2016 02:42:04 PM (8 years ago)
Author:
dcavins
Message:

Add bp_friends_friendships cache group.

Add friendship caching by the ID of the friendship.
Check the cache before querying for friendship
details in BP_Friends_Friendship::populate.

Update get_user_ids_for_friendship() to create
a new friendship object so it could possibly use
the cached object.

Props dcavins, boonebgorges.

See #6978.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/bp-friends/classes/class-bp-friends-component.php

    r11022 r11122  
    289289        // Global groups.
    290290        wp_cache_add_global_groups( array(
    291             'bp_friends_requests'
     291            'bp_friends_requests',
     292            'bp_friends_friendships', // Individual friendship objects are cached here by ID.
    292293        ) );
    293294
Note: See TracChangeset for help on using the changeset viewer.