clean_comment_cache

Definition:
function clean_comment_cache($ids) {}

Removes comment ID from the comment cache.

Parameters

  • int|array $ids: Comment ID or array of comment IDs to remove from cache

Source code

function clean_comment_cache($ids) {

	foreach ( (array) $ids as $id )

		wp_cache_delete($id, 'comment');



	wp_cache_set('last_changed', time(), 'comment');

}

621

No comments yet... Be the first to leave a reply!

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

%d bloggers like this: