Update cache when editing categories. fixes #2127

git-svn-id: http://svn.automattic.com/wordpress/trunk@3341 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
ryan 2005-12-22 20:32:12 +00:00
parent 65223a924f
commit 8b686cdc2d
1 changed files with 1 additions and 1 deletions

View File

@ -117,7 +117,7 @@ function wp_insert_category($catarr) {
$wpdb->query( "UPDATE $wpdb->categories SET category_nicename = '$category_nicename' WHERE cat_ID = '$cat_ID'" );
}
wp_cache_set($cat_ID, get_category($cat_ID), 'category');
wp_cache_delete($cat_ID, 'category');
if ($update) {
do_action('edit_category', $cat_ID);