clean_category_cache

The timeline below displays how wordpress function clean_category_cache has changed across different WordPress versions. If a version is not listed, refer to the next available version below.

WordPress Version: 5.5

/* Cache */
/**
 * Removes the category cache data based on ID.
 *
 * @since 2.1.0
 *
 * @param int $id Category ID
 */
function clean_category_cache($id)
{
    clean_term_cache($id, 'category');
}

WordPress Version: 4.1

/* Cache */
/**
 * Remove the category cache data based on ID.
 *
 * @since 2.1.0
 *
 * @param int $id Category ID
 */
function clean_category_cache($id)
{
    clean_term_cache($id, 'category');
}

WordPress Version: 3.7

/* Cache */
/**
 * Remove the category cache data based on ID.
 *
 * @since 2.1.0
 * @uses clean_term_cache() Clears the cache for the category based on ID
 *
 * @param int $id Category ID
 */
function clean_category_cache($id)
{
    clean_term_cache($id, 'category');
}