wp_cache_get_multiple()
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.
- $group(строка)
- Where the cache contents are grouped.
По умолчанию:'' - $force(true|false)
- Whether to force an update of the local cache from the persistent cache.
По умолчанию:false
Заметки
- Смотрите: WP_Object_Cache::get_multiple()
- Global. WP_Object_Cache.
$wp_object_cacheObject cache global instance.
Список изменений
| С версии 5.5.0 | Введена. |
Код wp_cache_get_multiple() wp cache get multiple WP 6.9.1
function wp_cache_get_multiple( $keys, $group = '', $force = false ) {
global $wp_object_cache;
return $wp_object_cache->get_multiple( $keys, $group, $force );
}