clean_category_cache() WordPress Function
The clean_category_cache() function is a utility function that clears the category cache. This is useful when you need to update the category cache after making changes to the categories.
clean_category_cache( int $id ) #
Removes the category cache data based on ID.
Parameters
- $id
(int)(Required)Category ID
Source
File: wp-includes/category.php
function clean_category_cache( $id ) { clean_term_cache( $id, 'category' ); }
Expand full source codeCollapse full source codeView on TracView on GitHub
Changelog
Version | Description |
---|---|
2.1.0 | Introduced. |