clean_category_cache

Remove the category cache data based on ID.

Description

clean_category_cache( (int) $id ); 

Parameters (1)

0. $id (int)
Category ID

Usage

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

Defined (1)

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

/wp-includes/category.php  
  1. function clean_category_cache( $id ) { 
  2. clean_term_cache( $id, 'category' );