Update clean_object_term_cache() to clear for each taxonomy

git-svn-id: http://svn.automattic.com/wordpress/trunk@6288 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
ryan 2007-10-24 17:07:04 +00:00
parent 1920dc0390
commit 85078df8c7
1 changed files with 2 additions and 1 deletions

View File

@ -1363,7 +1363,8 @@ function clean_object_term_cache($object_ids, $object_type) {
$object_ids = array($object_ids); $object_ids = array($object_ids);
foreach ( $object_ids as $id ) foreach ( $object_ids as $id )
wp_cache_delete($id, 'object_terms'); foreach ( get_object_taxonomies($object_type) as $taxonomy )
wp_cache_delete($id, "{$taxonomy}_relationships");
do_action('clean_object_term_cache', $object_ids, $object_type); do_action('clean_object_term_cache', $object_ids, $object_type);
} }