Skip to:
Content

BuddyPress.org


Ignore:
Timestamp:
03/03/2014 01:48:45 AM (10 years ago)
Author:
boonebgorges
Message:

Caching improvements related to bp_core_get_user_displayname()

  • The cache check in BP_XProfile_Data::exists() should be aware that cache misses are stored as objects and check for misses accordingly
  • Ensure that fullname cache is busted when field 1 is updated
  • Some unit tests
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/bp-xprofile/bp-xprofile-classes.php

    r7965 r8022  
    11571157        $cached = wp_cache_get( $this->field_id, 'bp_xprofile_data_' . $this->user_id );
    11581158
    1159         if ( $cached ) {
     1159        if ( $cached && ! empty( $cached->id ) ) {
    11601160            $retval = true;
    11611161        } else {
Note: See TracChangeset for help on using the changeset viewer.