wp_cache_add_multiple
wp_cache_add_multiple ( $data, $group = '', $expire = 0 )
Parameters:- (array) data Array of keys and values to be set.
- (string) group Optional. Where the cache contents are grouped. Default empty.
- (int) expire Optional. When to expire the cache contents, in seconds. Default 0 (no expiration).
See:- WP_Object_Cache::add_multiple()
Returns:- (bool[]) Array of return values, grouped by key. Each value is either true on success, or false if cache key and group already exist.
Defined at: - Introduced in WordPress: 6.0.0
- Deprecated in WordPress: —
Description
Adds multiple values to the cache in one call.