WC_Comments::delete_comments_count_cache()

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


Description Description


Source Source

File: includes/class-wc-comments.php

	public static function delete_comments_count_cache() {
		delete_transient( 'wc_count_comments' );
	}

Top ↑

User Contributed Notes User Contributed Notes

You must log in before being able to contribute a note or feedback.