wp_cache_get_multiple()WP 5.5.0

Retrieves multiple values from the cache in one call.

Хуков нет.


Массив. Array of return values, grouped by key. Each value is either the cache contents on success, or false on failure.


wp_cache_get_multiple( $keys, $group, $force );
$keys(массив) (обязательный)
Array of keys under which the cache contents are stored.
Where the cache contents are grouped.
По умолчанию: ''
Whether to force an update of the local cache from the persistent cache.
По умолчанию: false


Список изменений

С версии 5.5.0 Введена.

Код wp_cache_get_multiple() WP 6.4.3

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

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