function update_user_caches($user) {}

Update all user caches


  • object $user: User object to be cached

Source code

function update_user_caches($user) {

	wp_cache_add($user->ID, $user, 'users');

	wp_cache_add($user->user_login, $user->ID, 'userlogins');

	wp_cache_add($user->user_email, $user->ID, 'useremail');

	wp_cache_add($user->user_nicename, $user->ID, 'userslugs');



No comments yet... Be the first to leave a reply!

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

%d bloggers like this: