clean_bookmark_cache() WordPress Function
The clean_bookmark_cache() function is used to clear the cached data for bookmarks. This function is useful for when you need to update the cached data for bookmarks.
clean_bookmark_cache( int $bookmark_id ) #
Deletes the bookmark cache.
Parameters
- $bookmark_id
(int)(Required)Bookmark ID.
Source
File: wp-includes/bookmark.php
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' ); }
Expand full source codeCollapse full source codeView on TracView on GitHub
Changelog
Version | Description |
---|---|
2.7.0 | Introduced. |