wp_cache_replace
wp_cache_replace ( $key, $data, $group = '', $expire = 0 )
Parameters:- (int|string) key The key for the cache data that should be replaced.
- (mixed) data The new data to store in the cache.
- (string) group Optional. The group for the cache data that should be replaced. Default empty.
- (int) expire Optional. When to expire the cache contents, in seconds. Default 0 (no expiration).
See:- WP_Object_Cache::replace()
Returns:- (bool) True if contents were replaced, false if original value does not exist.
Defined at: - Introduced in WordPress: 2.0.0
- Deprecated in WordPress: —
Description
Replaces the contents of the cache with new data.