Uses
| Uses | Description |
|---|---|
| wp-includes/cache.php: wp_cache_get() | Retrieves the cache contents from the cache by key and group. |
| wp-includes/cache.php: wp_cache_set() | Saves the data to the cache. |
Gets last changed date for the specified cache group.
(string) (Required) Where the cache contents are grouped.
(string) UNIX timestamp with microseconds representing when the group was last changed.
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;
} | Version | Description |
|---|---|
| 4.7.0 | Introduced. |
© 2003–2019 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/functions/wp_cache_get_last_changed