wp_cache_get_multiple( array $keys, string $group = '', bool $force = false )

Retrieves multiple values from the cache in one call.


Description Description

Top ↑

See also See also


Top ↑

Parameters Parameters

$keys

(array) (Required) Array of keys under which the cache contents are stored.

$group

(string) (Optional) Where the cache contents are grouped.

Default value: ''

$force

(bool) (Optional) Whether to force an update of the local cache from the persistent cache.

Default value: false


Top ↑

Return Return

(array) Array of values organized into groups.


Top ↑

Source Source

File: wp-includes/cache.php

function wp_cache_get_multiple( $keys, $group = '', $force = false ) {
	global $wp_object_cache;

	return $wp_object_cache->get_multiple( $keys, $group, $force );
}


Top ↑

Changelog Changelog

Changelog
Version Description
5.5.0 Introduced.

Top ↑

User Contributed Notes User Contributed Notes

Top ↑

You must log in before being able to contribute a note or feedback.