Update cache when editing categories. fixes #2127

git-svn-id: https://develop.svn.wordpress.org/trunk@3341 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Ryan Boren 2005-12-22 20:32:12 +00:00
parent 96d9aa75ae
commit c91c804b9a
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);