Reference › Functions wp_cache_set_multiple_salted ( mixed $data , string $group , string | string[] $salt , int $expire = 0 ): bool[]
Since 6.9.0
Source wp-includes/cache-compat.php:303Parameters Return Uses Used by Source History Stores multiple pieces of salted data in the cache.
Parameters
$datamixed Data to be stored in the cache for all keys.
$groupstring Group to which the cached data belongs.
$saltstring | string[]The timestamp (or multiple timestamps if an array) indicating when the cache group(s) were last updated.
$expireint optional When to expire the cache contents, in seconds. Default 0 (no expiration).Default: 0 Return
bool[] Array of return values, grouped by key. Each value is either true on success, or false on failure. Source View on Trac ↗ View on GitHub ↗
303 function wp_cache_set_multiple_salted ( $data , $group , $salt , $expire = 0 ) { 304 $salt = is_array ( $salt ) ? implode ( ':' , $salt ) : $salt ; 305 $new_cache = array ( ) ; 306 foreach ( $data as $key => $value ) { 307 $new_cache [ $key ] = array ( 308 'data' => $value , 309 'salt' => $salt , 310 ) ; 311 } 312 return wp_cache_set_multiple ( $new_cache , $group , $expire ) ; 313 } History Introduced in 6.9.0 . Unchanged from 6.9.7 through 7.1.0.
6.9.7 7.0.4 7.1.0 Signature, return type and hooks compared across 3 parsed releases.
About this page Parsed data Generated from the wordpress-develop 6.9.7 tag, from src/wp-includes/cache-compat.php, and regenerated for each WordPress release so it tracks the code rather than a snapshot of it. Corrections Something wrong on this page? Report it and it gets fixed in the next regeneration.