Advertisements

refresh_blog_details

Definition:
function refresh_blog_details( $blog_id ) {}

Clear the blog details cache.

Parameters

  • int $blog_id: Blog ID

Source code

function refresh_blog_details( $blog_id ) {

	$blog_id = (int) $blog_id;

	$details = get_blog_details( $blog_id, false );



	wp_cache_delete( $blog_id , 'blog-details' );

	wp_cache_delete( $blog_id . 'short' , 'blog-details' );

	wp_cache_delete( md5( $details->domain . $details->path )  , 'blog-lookup' );

	wp_cache_delete( 'current_blog_' . $details->domain, 'site-options' );

	wp_cache_delete( 'current_blog_' . $details->domain . $details->path, 'site-options' );

}

2651

Advertisements

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 )

Google+ photo

You are commenting using your Google+ 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: