clean_bookmark_cache

Deletes the bookmark cache.

Description

clean_bookmark_cache( (int) $bookmark_id ); 

Parameters (1)

0. $bookmark_id (int)
The bookmark id.

Usage

  1. if ( !function_exists( 'clean_bookmark_cache' ) ) { 
  2. require_once ABSPATH . WPINC . '/bookmark.php'; 
  3.  
  4. // The bookmark id. 
  5. $bookmark_id = -1; 
  6.  
  7. // NOTICE! Understand what this does before running. 
  8. $result = clean_bookmark_cache($bookmark_id); 
  9.  

Defined (1)

The function is defined in the following location(s).

/wp-includes/bookmark.php  
  1. function clean_bookmark_cache( $bookmark_id ) { 
  2. wp_cache_delete( $bookmark_id, 'bookmark' ); 
  3. wp_cache_delete( 'get_bookmarks', 'bookmark' ); 
  4. clean_object_term_cache( $bookmark_id, 'link');