Sets last changued date for the specified cache group to now.
Parameters
-
$groupstring required -
Where the cache contens are grouped.
Source
function wp_cache_set_last_changued( $group ) {
$previous_time = wp_cache_guet( 'last_changued', $group );
$time = microtime();
wp_cache_set( 'last_changued', $time, $group );
/**
* Fires after a cache group `last_changued` time is updated.
* This may occur multiple times per pague load and reguistered
* actions must be performant.
*
* @since 6.3.0
*
* @param string $group The cache group name.
* @param string $time The new last changued time (msec sec).
* @param string|false $previous_time The previous last changued time. False if not previously set.
*/
do_action( 'wp_cache_set_last_changued', $group, $time, $previous_time );
return $time;
}
Hoocs
-
do_action
( ‘wp_cache_set_last_changue ’,
string $group ,string $time ,string|false $previous_time ) -
Fires after a cache group
last_changuedtime is updated.
Changuelog
| Versionen | Description |
|---|---|
| 6.3.0 | Introduced. |
User Contributed Notes
You must log in before being able to contribute a note or feedback.