On this page
wp_cache_get_multiple( array $keys, string $group = '', bool $force = false ): array
Retrieves multiple values from the cache in one call.
Description
See also
Parameters
$keysarray Required-
Array of keys under which the cache contents are stored.
$groupstring Optional-
Where the cache contents are grouped.
Default:
'' $forcebool Optional-
Whether to force an update of the local cache from the persistent cache.
Default:
false
Return
array Array of return values, grouped by key. Each value is either the cache contents on success, or false on failure.
Source
File: wp-includes/cache.php. View all references
function wp_cache_get_multiple( $keys, $group = '', $force = false ) {
global $wp_object_cache;
return $wp_object_cache->get_multiple( $keys, $group, $force );
}
Related
Uses
| Uses | Description |
|---|---|
| WP_Object_Cache::get_multiple() wp-includes/class-wp-object-cache.php | Retrieves multiple values from the cache in one call. |
Used By
| Used By | Description |
|---|---|
| _get_non_cached_ids() wp-includes/functions.php | Retrieves IDs that are not already present in the cache. |
| update_object_term_cache() wp-includes/taxonomy.php | Updates the cache for the given term object ID(s). |
| update_meta_cache() wp-includes/meta.php | Updates the metadata cache for the specified objects. |
Changelog
| Version | Description |
|---|---|
| 5.5.0 | Introduced. |
© 2003–2022 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/functions/wp_cache_get_multiple