update_network_cache

Advertisement

Summery Summery

Updates the network cache of given networks.

Syntax Syntax

update_network_cache( array $networks )

Description Description

Will add the networks in $networks to the cache. If network ID already exists in the network cache then it will not be updated. The network is added to the cache using the network group with the key using the ID of the networks.

Parameters Parameters

$networks

(array) (Required) Array of network row objects.

Source Source

File: wp-includes/ms-network.php

function update_network_cache( $networks ) {
	foreach ( (array) $networks as $network ) {
		wp_cache_add( $network->id, $network, 'networks' );
	}
}

Advertisement

Changelog Changelog

Changelog
Version Description
4.6.0 Introduced.

Advertisement

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.