clean_taxonomy_cache

Advertisement

Summery Summery

Clean the caches for a taxonomy.

Syntax Syntax

clean_taxonomy_cache( string $taxonomy )

Parameters Parameters

$taxonomy

(string) (Required) Taxonomy slug.

Source Source

File: wp-includes/taxonomy.php

 *
 * @see get_object_taxonomies() for more on $object_type.
 *
 * @param int|array    $object_ids  Single or list of term object ID(s).
 * @param array|string $object_type The taxonomy object type.
 */
function clean_object_term_cache( $object_ids, $object_type ) {
	global $_wp_suspend_cache_invalidation;

	if ( ! empty( $_wp_suspend_cache_invalidation ) ) {
		return;
	}

	if ( ! is_array( $object_ids ) ) {
		$object_ids = array( $object_ids );
	}

Advertisement

Changelog Changelog

Changelog
Version Description
4.9.0 Introduced.

Advertisement

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.