Don't forget the tag_cache

git-svn-id: http://svn.automattic.com/wordpress/trunk@5163 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
matt 2007-04-01 08:44:10 +00:00
parent 3bf8b1699a
commit afb8aafcbf
1 changed files with 4 additions and 1 deletions

View File

@ -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) {