Make WordPress Core


Ignore:
Timestamp:
12/31/2014 06:11:22 PM (11 years ago)
Author:
wonderboymusic
Message:

Update/fix inline docs for update_object_term_cache().

Props DrewAPicture.
Fixes #30731.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/taxonomy.php

    r30994 r31012  
    36933693
    36943694/**
    3695  * Updates the cache for Term ID(s).
    3696  *
    3697  * Will only update the cache for terms not already cached.
    3698  *
    3699  * The $object_ids expects that the ids be separated by commas, if it is a
    3700  * string.
    3701  *
    3702  * It should be noted that update_object_term_cache() is very time extensive. It
    3703  * is advised that the function is not called very often or at least not for a
    3704  * lot of terms that exist in a lot of taxonomies. The amount of time increases
    3705  * for each term and it also increases for each taxonomy the term belongs to.
     3695 * Updates the cache for the given term object ID(s).
     3696 *
     3697 * Note: Due to performance concerns, great care should be taken to only update
     3698 * term caches when necessary. Processing time can increase exponentially depending
     3699 * on both the number of passed term IDs and the number of taxonomies those terms
     3700 * belong to.
     3701 *
     3702 * Caches will only be updated for terms not already cached.
    37063703 *
    37073704 * @since 2.3.0
    37083705 *
    3709  * @param string|array $object_ids Single or list of term object ID(s)
    3710  * @param array|string $object_type The taxonomy object type
    3711  * @return null|false Null value is given with empty $object_ids. False if
     3706 * @param string|array $object_ids  Comma-separated list or array of term object IDs..
     3707 * @param array|string $object_type The taxonomy object type.
     3708 * @return null|false Null if `$object_ids` is empty, false if all of the terms in
     3709 *                    `$object_ids` are already cached.
    37123710 */
    37133711function update_object_term_cache($object_ids, $object_type) {
Note: See TracChangeset for help on using the changeset viewer.