Uses
Uses | Description |
---|---|
wp-includes/cache.php: wp_cache_add() | Adds data to the cache, if the cache key doesn’t already exist. |
Updates the network cache of given networks.
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.
(array) (Required) Array of network row objects.
File: wp-includes/ms-network.php
function update_network_cache( $networks ) { foreach ( (array) $networks as $network ) { wp_cache_add( $network->id, $network, 'networks' ); } }
Version | Description |
---|---|
4.6.0 | Introduced. |
© 2003–2019 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/functions/update_network_cache