Skip to:
Content

BuddyPress.org


Ignore:
Timestamp:
01/09/2015 08:38:37 PM (10 years ago)
Author:
johnjamesjacoby
Message:

XProfile data cache group updates:

  • Switches from dynamic cache group to unique key for $user_id:$field_id.
  • Introduces bp_xprofile_get_non_cached_field_ids() as a helper, based on bp_get_non_cached_field_ids().
  • Registers bp_xprofile and bp_xprofile_data as global cache groups.
  • Updates unit tests to pass with new cache keys.

Props r-a-y. Fixes #6100. See #5733.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/tests/phpunit/testcases/members/functions.php

    r9234 r9336  
    184184        $wpdb->query( $wpdb->prepare( "DELETE FROM {$bp->profile->table_name_data} WHERE user_id = %d AND field_id = 1", $u ) );
    185185        wp_cache_delete( 'bp_user_fullname_' . $u, 'bp' );
    186         wp_cache_delete( 1, 'bp_xprofile_data_' . $u, 'bp' );
     186        wp_cache_delete( "{$u}:1", 'bp_xprofile_data', 'bp' );
    187187
    188188        $this->assertSame( '', xprofile_get_field_data( 1, $u ) );
Note: See TracChangeset for help on using the changeset viewer.