ActionScheduler_wpCommentLogger::delete_comment_count_cache()publicWC 1.0

Delete comment count cache whenever there is new comment or the status of a comment changes. Cache will be regenerated next time ActionScheduler_wpCommentLogger::filter_comment_count() is called.

Method of the class: ActionScheduler_wpCommentLogger{}

No Hooks.

Return

null. Nothing (null).

Usage

$ActionScheduler_wpCommentLogger = new ActionScheduler_wpCommentLogger();
$ActionScheduler_wpCommentLogger->delete_comment_count_cache();

ActionScheduler_wpCommentLogger::delete_comment_count_cache() code WC 8.7.0

public function delete_comment_count_cache() {
	delete_transient( 'as_comment_count' );
}