WordPress at a glance
function is not described

wp_maybe_clean_new_site_cache_on_update() WP 5.1.0

Cleans the necessary caches after specific site data has been updated.

No Hooks.

Return

Null. Nothing.

Usage

wp_maybe_clean_new_site_cache_on_update( $new_site, $old_site );
$new_site(WP_Site) (required)
The site object after the update.
$old_site(WP_Site) (required)
The site obejct prior to the update.

Changelog

Since 5.1.0 Introduced.

Code of wp_maybe_clean_new_site_cache_on_update() WP 5.5.1

<?php
function wp_maybe_clean_new_site_cache_on_update( $new_site, $old_site ) {
	if ( $old_site->domain !== $new_site->domain || $old_site->path !== $new_site->path ) {
		clean_blog_cache( $new_site );
	}
}