Removes the category cache data based on ID.
Parameters
$idintrequired- Category ID
Source
function clean_category_cache( $id ) {
clean_term_cache( $id, 'category' );
}
Changelog
| Version | Description |
|---|---|
| 2.1.0 | Introduced. |
Removes the category cache data based on ID.
$idintrequiredfunction clean_category_cache( $id ) {
clean_term_cache( $id, 'category' );
}
| Version | Description |
|---|---|
| 2.1.0 | Introduced. |
User Contributed Notes
You must log in before being able to contribute a note or feedback.