wp_cache_get_last_changed( string $group )
Gets last changed date for the specified cache group.
Parameters
- $group
-
(Required) Where the cache contents are grouped.
Return
(string) UNIX timestamp with microseconds representing when the group was last changed.
Source
File: wp-includes/functions.php
function wp_cache_get_last_changed( $group ) {
$last_changed = wp_cache_get( 'last_changed', $group );
if ( ! $last_changed ) {
$last_changed = microtime();
wp_cache_set( 'last_changed', $last_changed, $group );
}
return $last_changed;
}
Changelog
Version | Description |
---|---|
4.7.0 | Introduced. |