wp_cache_get_last_changed

函数


wp_cache_get_last_changed ( $group )
参数
  • (string)
    $group
    Where the cache contents are grouped.
    Required:
返回值
  • (string) UNIX timestamp with microseconds representing when the group was last changed.
定义位置
  • wp-includes/functions.php
    , line 7606
引入
4.7.0
弃用

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 ) {
		$last_changed = microtime();
		wp_cache_set( 'last_changed', $last_changed, $group );
	}

	return $last_changed;
}
声明:本站所有文章,如无特殊说明或标注,均为本站原创发布。任何个人或组织,在未征得本站同意时,禁止复制、盗用、采集、发布本站内容到任何网站、书籍等各类媒体平台。如若本站内容侵犯了原著者的合法权益,可联系我们进行处理。