Make WordPress Core

Changeset 16562


Ignore:
Timestamp:
11/24/2010 06:47:52 AM (14 years ago)
Author:
scribu
Message:

Correct cache invalidation in update_usermeta() and delete_usermeta(). Props mdawaffe. Fixes #15559

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-includes/deprecated.php

    r16412 r16562  
    22972297        $wpdb->query( $wpdb->prepare("DELETE FROM $wpdb->usermeta WHERE user_id = %d AND meta_key = %s", $user_id, $meta_key) );
    22982298
    2299     wp_cache_delete($user_id, 'users');
     2299    clean_user_cache( $user_id );
     2300    wp_cache_delete( $user_id, 'user_meta' );
    23002301
    23012302    if ( $cur && $cur->umeta_id )
     
    24042405        return false;
    24052406
    2406     wp_cache_delete($user_id, 'users');
     2407    clean_user_cache( $user_id );
     2408    wp_cache_delete( $user_id, 'user_meta' );
    24072409
    24082410    if ( !$cur )
Note: See TracChangeset for help on using the changeset viewer.