clean_site_cache action-hookWP 4.6.0

Fires immediately after a site has been removed from the object cache.

Usage

add_action( 'clean_site_cache', 'wp_kama_clean_site_cache_action', 10, 3 );

/**
 * Function for `clean_site_cache` action-hook.
 * 
 * @param string  $id              Site ID as a numeric string.
 * @param WP_Site $blog            Site object.
 * @param string  $domain_path_key md5 hash of domain and path.
 *
 * @return void
 */
function wp_kama_clean_site_cache_action( $id, $blog, $domain_path_key ){

	// action...
}
$id(string)
Site ID as a numeric string.
$blog(WP_Site)
Site object.
$domain_path_key(string)
md5 hash of domain and path.

Changelog

Since 4.6.0 Introduced.

Where the hook is called

clean_blog_cache()
clean_site_cache
wp-includes/ms-site.php 1011
do_action( 'clean_site_cache', $blog_id, $blog, $domain_path_key );

Where the hook is used in WordPress

Usage not found.