Definition:
function clean_object_term_cache($object_ids, $object_type) {}
Parameters
- int|array $object_ids: Single or list of term object ID(s)
- array|string $object_type: The taxonomy object type
Source code
function clean_object_term_cache($object_ids, $object_type) {
if ( !is_array($object_ids) )
$object_ids = array($object_ids);
foreach ( $object_ids as $id )
foreach ( get_object_taxonomies($object_type) as $taxonomy )
wp_cache_delete($id, "{$taxonomy}_relationships");
623

February 11, 2011 


clean_comment_cache
Definition:
function clean_comment_cache($ids) {}
Parameters
Source code
function clean_comment_cache($ids) { foreach ( (array) $ids as $id ) wp_cache_delete($id, 'comment'); wp_cache_set('last_changed', time(), 'comment'); }621