Cache user ids and user logins separately to avoid collision. Props donncha. fixes #2096

git-svn-id: https://develop.svn.wordpress.org/trunk@3330 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Ryan Boren
2005-12-19 19:14:22 +00:00
parent d417f96524
commit 4957068837
5 changed files with 10 additions and 10 deletions

View File

@@ -241,7 +241,7 @@ function wp_delete_user($id, $reassign = 'novalue') {
$wpdb->query("DELETE FROM $wpdb->usermeta WHERE user_id = '$id'");
wp_cache_delete($id, 'users');
wp_cache_delete($user->user_login, 'users');
wp_cache_delete($user->user_login, 'userlogins');
do_action('delete_user', $id);
@@ -354,4 +354,4 @@ function comment_exists($comment_author, $comment_date) {
WHERE comment_author = '$comment_author' AND comment_date = '$comment_date'");
}
?>
?>