WordPress.org

Codex

Interested in functions, hooks, classes, or methods? Check out the new WordPress Code Reference!

Function Reference/clean term cache

Description

Will remove all of the term ids from the cache.

Usage

<?php clean_term_cache$ids$taxonomy$clean_taxonomy ); ?>

Parameters

$ids
(int|array) (required) Single or list of Term IDs
Default: None
$taxonomy
(string) (optional) Can be empty and will assume tt_ids, else will use for context.
Default:
$clean_taxonomy
(boolean) (optional) Whether to clean taxonomy wide caches (true), or just individual term object caches (false). Default is true.
Default: true

Change Log

Since: 2.3

Source File

clean_term_cache() is located in wp-includes/taxonomy.php