do_action( 'wp_cache_set_last_changed', string $group, string $time, string|false $previous_time )
- Since
- 6.3.0
Fires after a cache group
last_changed time is updated.Description
This may occur multiple times per page load and registered actions must be performant.
Compatibility
- WordPress
- since 6.3.0
- 6.7.7
- 6.8.8
- 6.9.7
- 7.0.4
- 7.1.0
Present in every tracked release (6.7.7 to 7.1.0).
Parameters
$groupstring- The cache group name.
$timestring- The new last changed time (msec sec).
$previous_timestring|false- The previous last changed time. False if not previously set.
Where this hook fires · 1
wp-includes/functions.php:8271wp_cache_set_last_changed()
Source code
* @since 6.3.0 * * @param string $group The cache group name. * @param string $time The new last changed time (msec sec). * @param string|false $previous_time The previous last changed time. False if not previously set. */ do_action( 'wp_cache_set_last_changed', $group, $time, $previous_time ); return $time;} /** * Sends an email to the old site admin email address when the site admin email address changes.Changelog
Introduced in 6.3.0. 2 changes between 6.7.7 and 7.1.0.
Signature, return type and hooks compared across 5 parsed releases.
6.8.8
Parameter
$time retyped from int to string.verified against source6.8.8
Parameter
$previous_time retyped from int|false to string|false.verified against source6.3.0
Introduced.from the docblock
About this page
- Parsed data
- Generated from the wordpress-develop 7.1.0 tag, 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.