update_sitemeta_cache

Advertisement

Summery Summery

Updates metadata cache for list of site IDs.

Syntax Syntax

update_sitemeta_cache( array $site_ids )

Description Description

Performs SQL query to retrieve all metadata for the sites matching $site_ids and stores them in the cache. Subsequent calls to get_site_meta() will not need to query the database.

Parameters Parameters

$site_ids

(array) (Required) List of site IDs.

Return Return

(array|false) Returns false if there is nothing to update. Returns an array of metadata on success.

Source Source

File: wp-includes/ms-site.php

 * Subsequent calls to `get_site_meta()` will not need to query the database.
 *
 * @since 5.1.0
 *
 * @param array $site_ids List of site IDs.
 * @return array|false An array of metadata on success, false if there is nothing to update.
 */

Advertisement

Changelog Changelog

Changelog
Version Description
5.1.0 Introduced.

Advertisement

Leave a Reply

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