wp_cache_get_last_changed() – Get last changed date for the specified cache group.

You appear to be a bot. Output may be restricted

Description

Gets last changed date for the specified cache group.

Usage

$string = wp_cache_get_last_changed( $group );

Parameters

$group
( string ) required – Where the cache contents are grouped.

Returns

string UNIX timestamp with microseconds representing when the group was last changed.

Source

File name: wordpress/wp-includes/functions.php
Lines:

1 to 10 of 10
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;
}
 

 View on GitHub View on Trac