@@ -239,10 +239,11 @@ function wp_cache_get_salted( $cache_key, $group, $salt ) {
239
239
* @param string|string[] $salt The timestamp (or multiple timestamps if an array) indicating when the cache group(s) were last updated.
240
240
* @param int $expire Optional. When to expire the cache contents, in seconds.
241
241
* Default 0 (no expiration).
242
+ * @return bool True on success, false on failure.
242
243
*/
243
244
function wp_cache_set_salted ( $ cache_key , $ data , $ group , $ salt , $ expire = 0 ) {
244
245
$ salt = is_array ( $ salt ) ? implode ( ': ' , $ salt ) : $ salt ;
245
- wp_cache_set (
246
+ return wp_cache_set (
246
247
$ cache_key ,
247
248
array (
248
249
'data ' => $ data ,
@@ -296,6 +297,8 @@ function wp_cache_get_multiple_salted( $cache_keys, $group, $salt ) {
296
297
* @param string|string[] $salt The timestamp (or multiple timestamps if an array) indicating when the cache group(s) were last updated.
297
298
* @param int $expire Optional. When to expire the cache contents, in seconds.
298
299
* Default 0 (no expiration).
300
+ * @return bool[] Array of return values, grouped by key. Each value is either
301
+ * true on success, or false on failure.
299
302
*/
300
303
function wp_cache_set_multiple_salted ( $ data , $ group , $ salt , $ expire = 0 ) {
301
304
$ salt = is_array ( $ salt ) ? implode ( ': ' , $ salt ) : $ salt ;
@@ -306,6 +309,6 @@ function wp_cache_set_multiple_salted( $data, $group, $salt, $expire = 0 ) {
306
309
'salt ' => $ salt ,
307
310
);
308
311
}
309
- wp_cache_set_multiple ( $ new_cache , $ group , $ expire );
312
+ return wp_cache_set_multiple ( $ new_cache , $ group , $ expire );
310
313
}
311
314
endif ;
0 commit comments