update_object_term_cache


update_object_term_cache ( $object_ids, $object_type )

Parameters:
  • (string|array) $object_ids Comma-separated list or array of term object IDs.
  • (array|string) $object_type The taxonomy object type.
Returns:
  • (void|false) False if all of the terms in `$object_ids` are already cached.
Defined at:

Description

Updates the cache for the given term object ID(s).

Note: Due to performance concerns, great care should be taken to only update term caches when necessary. Processing time can increase exponentially depending on both the number of passed term IDs and the number of taxonomies those terms belong to.

Caches will only be updated for terms not already cached.

Related Functions

get_object_term_cache, update_term_cache, clean_object_term_cache, update_category_cache, update_termmeta_cache

Top Google Results

User discussions

wpseek mobile