wp_cache_get_last_changed( string $group )

Get last changed date for the specified cache group.


Description Description


Parameters Parameters

$group

(string) (Required) Where the cache contents are grouped.


Top ↑

Return Return

(string) $last_changed UNIX timestamp with microseconds representing when the group was last changed.


Top ↑

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

Top ↑

Changelog Changelog

Changelog
Version Description
4.7.0 Introduced.


Top ↑

User Contributed Notes User Contributed Notes

You must log in before being able to contribute a note or feedback.