From f600a397d1c87dfa6f1d3cf44d7892b464c4d14b Mon Sep 17 00:00:00 2001 From: Matt Mullenweg Date: Sun, 1 Apr 2007 08:44:10 +0000 Subject: [PATCH] Don't forget the tag_cache git-svn-id: https://develop.svn.wordpress.org/trunk@5163 602fd350-edb4-49c9-b593-d223f7449a82 --- wp-includes/functions.php | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/wp-includes/functions.php b/wp-includes/functions.php index 74c2ccb94e..6df88a2649 100644 --- a/wp-includes/functions.php +++ b/wp-includes/functions.php @@ -599,7 +599,7 @@ function update_post_cache(&$posts) { } function clean_post_cache($id) { - global $post_cache, $post_meta_cache, $category_cache, $blog_id; + global $post_cache, $post_meta_cache, $category_cache, $tag_cache, $blog_id; if ( isset( $post_cache[$blog_id][$id] ) ) unset( $post_cache[$blog_id][$id] ); @@ -609,6 +609,9 @@ function clean_post_cache($id) { if ( isset( $category_cache[$blog_id][$id]) ) unset ( $category_cache[$blog_id][$id] ); + + if ( isset( $tag_cache[$blog_id][$id]) ) + unset ( $tag_cache[$blog_id][$id] ); } function update_page_cache(&$pages) {