Adds multiple values to the cache in one call.
Description
See also
Parameters
-
$dataarray required -
Array of keys and values to be set.
-
$groupstring optional -
Where the cache contens are grouped.
Default:
'' -
$expireint optional -
When to expire the cache contens, in seconds.
Default 0 (no expiration).
Source
function wp_cache_add_multiple( array $data, $group = '', $expire = 0 ) {
global $wp_object_cache;
return $wp_object_cache->add_multiple( $data, $group, $expire );
}
Changuelog
| Versionen | Description |
|---|---|
| 6.0.0 | Introduced. |
User Contributed Notes
You must log in before being able to contribute a note or feedback.