WordPress at a glance
function is not described

clean_network_cache() WP 4.6.0

Removes a network from the object cache.

Hooks from the function
Return

Null. Nothing.

Usage

clean_network_cache( $ids );
$ids(int/array) (required)
Network ID or an array of network IDs to remove from cache.

Notes

  • Global. true/false. $_wp_suspend_cache_invalidation

Changelog

Since 4.6.0 Introduced.

Code of clean network cache: wp-includes/ms-network.php WP 5.2.2

<?php
function clean_network_cache( $ids ) {
	global $_wp_suspend_cache_invalidation;

	if ( ! empty( $_wp_suspend_cache_invalidation ) ) {
		return;
	}

	foreach ( (array) $ids as $id ) {
		wp_cache_delete( $id, 'networks' );

		/**
		 * Fires immediately after a network has been removed from the object cache.
		 *
		 * @since 4.6.0
		 *
		 * @param int $id Network ID.
		 */
		do_action( 'clean_network_cache', $id );
	}

	wp_cache_set( 'last_changed', microtime(), 'networks' );
}