clean_bookmark_cache( int $bookmark_id )

In this article

Deletes the bookmark cache.

Parameters

$bookmark_idintrequired
Bookmark ID.

Source

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' );
}

Changelog

VersionDescription
2.7.0Introduced.

User Contributed Notes

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