Changeset 1417
- Timestamp:
- 04/28/2009 07:31:15 AM (15 years ago)
- Location:
- trunk
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/bp-core.php
r1416 r1417 1329 1329 function bp_core_clear_user_object_cache( $user_id ) { 1330 1330 wp_cache_delete( 'bp_user_' . $user_id, 'bp' ); 1331 wp_cache_delete( 'bp_core_avatar_v1_u' . $user_id, 'bp' ); 1332 wp_cache_delete( 'bp_core_avatar_v2_u' . $user_id, 'bp' ); 1331 1333 wp_cache_delete( 'online_users' ); 1332 1334 wp_cache_delete( 'newest_users' ); -
trunk/bp-core/bp-core-avatars.php
r1366 r1417 34 34 $height = constant('CORE_AVATAR_V' . $version . '_H'); 35 35 36 $avatar_file = get_usermeta( $user, "bp_core_avatar_v$version" ); 36 if ( !$avatar_file = wp_cache_get( 'bp_core_avatar_v' . $version . '_u' . $user, 'bp' ) ) { 37 $avatar_file = get_usermeta( $user, 'bp_core_avatar_v' . $version ); 38 wp_cache_set( 'bp_core_avatar_v' . $version . '_u' . $user, $avatar_file, 'bp' ); 39 } 40 37 41 $url = $bp->root_domain . '/' . $avatar_file; 38 42
Note: See TracChangeset
for help on using the changeset viewer.