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


Top ↑

Source

File: wp-includes/category.php

function clean_category_cache( $id ) {
	clean_term_cache( $id, 'category' );
}


Top ↑

Changelog

Changelog
VersionDescription
2.1.0Introduced.

The content displayed on this page has been created in part by processing WordPress source code files which are made available under the GPLv2 (or a later version) license by theĀ Free Software Foundation. In addition to this, the content includes user-written examples and information. All material is subject to review and curation by the WPPaste.com community.