W3cubDocs

/WordPress

do_action( ‘wp_cache_set_last_changed’, string $group, int $time, int|false $previous_time )

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.

Parameters

$groupstring
The cache group name.
$timeint
The new last changed time.
$previous_timeint|false
The previous last changed time. False if not previously set.

Source

do_action( 'wp_cache_set_last_changed', $group, $time, $previous_time );

Changelog

Version Description
6.3.0 Introduced.

© 2003–2024 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/hooks/wp_cache_set_last_changed