clean_bookmark_cache()
Deletes the bookmark cache.
No Hooks.
Returns
null. Nothing (null).
Usage
clean_bookmark_cache( $bookmark_id );
- $bookmark_id(int) (required)
- Bookmark ID.
Changelog
| Since 2.7.0 | Introduced. |
clean_bookmark_cache() clean bookmark cache code WP 6.8.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' );
}