clean_bookmark_cache()WP 2.7.0

Deletes the bookmark cache.

No Hooks.

Return

null. Nothing (null).

Usage

clean_bookmark_cache( $bookmark_id );
$bookmark_id(int) (required)
Bookmark ID.

Changelog

Since 2.7.0 Introduced.

clean_bookmark_cache() code WP 6.4.3

function clean_bookmark_cache( $bookmark_id ) {
	wp_cache_delete( $bookmark_id, 'bookmark' );
	wp_cache_delete( 'get_bookmarks', 'bookmark' );
	clean_object_term_cache( $bookmark_id, 'link' );
}