wpseek.com
WordPress开发者和主题制作者的搜索引擎



wp_cache_get_last_changed › WordPress Function

Since4.7.0
已弃用n/a
wp_cache_get_last_changed ( $group )
参数:
  • (string) $group Where the cache contents are grouped.
    Required: Yes
返回:
  • (string) UNIX timestamp with microseconds representing when the group was last changed.
定义在:
文档:

Gets last changed date for the specified cache group.



源码

function wp_cache_get_last_changed( $group ) {
	$last_changed = wp_cache_get( 'last_changed', $group );

	if ( $last_changed ) {
		return $last_changed;
	}

	return wp_cache_set_last_changed( $group );
}