wp_cache_get_multiple( array $keys, string $group = '', bool $force = false ): array
Retrieves multiple values from the cache in one call.
Contents
Description
See also
Parameters
-
$keys
array Required -
Array of keys under which the cache contents are stored.
-
$group
string Optional -
Where the cache contents are grouped.
Default:
''
-
$force
bool 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 );
}
Changelog
Version | Description |
---|---|
5.5.0 | Introduced. |