Core Function
View Source on Trac ↗ wp_cache_add_multiple()
wp_cache_add_multiple( array $data, mixed $group = '', mixed $expire = 0 ) Adds multiple values to the cache in one call.
Parameters 2 required
| Name / Type | Description |
|---|---|
| $data array | Array of keys and values to be set. Required |
| $group string | Optional. Where the cache contents are grouped. Default empty. |
| int | $expire Optional. When to expire the cache contents, in seconds. Default 0 (no expiration). Required |
Return Value
(bool[])
bool[] Array of return values, grouped by key. Each value is either
true on success, or false if cache key and group already exist.
Function Information
Since Version
6.0.0
Source File
wp-includes/cache.php
Advertisement