wp_cache_get_last_changed()
Gets last changed date for the specified cache group.
No Hooks.
Return
String
. UNIX timestamp with microseconds representing when the group was last changed.
Usage
wp_cache_get_last_changed( $group );
- $group(string) (required)
- Where the cache contents are grouped.
Changelog
Since 4.7.0 | Introduced. |
Code of wp_cache_get_last_changed() wp cache get last changed WP 5.9.3
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; }