Change back to an option so that it is always there and regenerate it after cleaning the cache instead of waiting for the next page load. Don't clean taxonomy wide caches when just updating object counts to avoid cleaning when updating a post.

git-svn-id: https://develop.svn.wordpress.org/trunk@12881 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Ryan Boren
2010-01-27 19:42:23 +00:00
parent 4bcd7b3afd
commit 61dcf802c7
2 changed files with 16 additions and 10 deletions
+1 -2
View File
@@ -2043,9 +2043,8 @@ function wp_insert_post($postarr = array(), $wp_error = false) {
wp_set_post_tags( $post_ID, $tags_input );
// new-style support for all tag-like taxonomies
if ( !empty($tax_input) ) {
foreach ( $tax_input as $taxonomy => $tags ) {
foreach ( $tax_input as $taxonomy => $tags )
wp_set_post_terms( $post_ID, $tags, $taxonomy );
}
}
$current_guid = get_post_field( 'guid', $post_ID );