Un motore di ricerca WordPress per sviluppatori e autori di temi



wp_cache_get_last_changed ›

Da4.7.0
Deprecaton/a
wp_cache_get_last_changed ( $group )
Parametri:
  • (string) $group Where the cache contents are grouped.
    Richiesto:
Ritorna:
  • (string) $last_changed UNIX timestamp with microseconds representing when the group was last changed.
Definito a:
Codex:

Get last changed date for the specified cache group.



Sorgenti

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;
}