Changeset 5555 for trunk/wp-includes/taxonomy.php
- Timestamp:
- 05/26/2007 11:32:06 PM (19 years ago)
- File:
-
- 1 edited
-
trunk/wp-includes/taxonomy.php (modified) (5 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-includes/taxonomy.php
r5553 r5555 96 96 $term_id = apply_filters('term_id_filter', $term_id, $tt_id); 97 97 98 //clean_term_cache($term_id);98 clean_term_cache($term_id, $taxonomy); 99 99 100 100 do_action("created_term", $term_id, $tt_id); … … 147 147 $wpdb->query("DELETE FROM $wpdb->term_taxonomy WHERE term_taxonomy_id = '$tt_id'"); 148 148 149 //clean_term_cache($term, $taxonomy); 149 clean_term_cache($term, $taxonomy); 150 150 151 do_action("delete_$taxonomy", $term, $tt_id); 151 152 … … 210 211 $term_id = apply_filters('term_id_filter', $term_id, $tt_id); 211 212 212 //clean_term_cache($term_id);213 clean_term_cache($term_id, $taxonomy); 213 214 214 215 do_action("edited_term", $term_id, $tt_id); … … 510 511 511 512 $cache[ $key ] = $terms; 512 wp_cache_add( 'get_terms', $cache, 'term s' );513 wp_cache_add( 'get_terms', $cache, 'term' ); 513 514 514 515 $terms = apply_filters('get_terms', $terms, $taxonomies, $args); … … 583 584 } 584 585 586 function clean_term_cache($id, $taxonomy) { 587 wp_cache_delete($id, $taxonomy); 588 wp_cache_delete('all_ids', $taxonomy); 589 wp_cache_delete('get', $taxonomy); 590 delete_option("{$taxonomy}_children"); 591 wp_cache_delete('get_terms', 'terms'); 592 } 593 585 594 function _get_term_hierarchy($taxonomy) { 586 595 // TODO Make sure taxonomy is hierarchical
Note: See TracChangeset
for help on using the changeset viewer.