wp_cache_set_comments_last_changed() WordPress Function

The wp_cache_set_comments_last_changed() function sets the last changed time for the comments cache. This timestamp is used to invalidate the cache when new comments are made.

wp_cache_set_comments_last_changed() #

Sets the last changed time for the ‘comment’ cache group.


Source

File: wp-includes/comment.php

function wp_cache_set_comments_last_changed() {
	wp_cache_set( 'last_changed', microtime(), 'comment' );
}


Top ↑

Changelog

Changelog
VersionDescription
5.0.0Introduced.

The content displayed on this page has been created in part by processing WordPress source code files which are made available under the GPLv2 (or a later version) license by theĀ Free Software Foundation. In addition to this, the content includes user-written examples and information. All material is subject to review and curation by the WPPaste.com community.

Show More
Show More