ActionScheduler_wpCommentLogger::delete_comment_count_cache
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.
Returns
null. Nothing (null).
Usage
$ActionScheduler_wpCommentLogger = new ActionScheduler_wpCommentLogger(); $ActionScheduler_wpCommentLogger->delete_comment_count_cache();
ActionScheduler_wpCommentLogger::delete_comment_count_cache() ActionScheduler wpCommentLogger::delete comment count cache code WC 10.8.1
public function delete_comment_count_cache() {
delete_transient( 'as_comment_count' );
}