From 72e9496bfc2f7a962cf4f428ccab25c7a0175aaa Mon Sep 17 00:00:00 2001 From: donncha Date: Tue, 16 Jan 2007 21:27:04 +0000 Subject: WP Merge to rev 4753 git-svn-id: http://svn.automattic.com/wordpress-mu/trunk@849 7be80a69-a1ef-0310-a953-fb0f7c49ff36 --- wp-includes/category.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'wp-includes/category.php') diff --git a/wp-includes/category.php b/wp-includes/category.php index 7f47161..7fdc334 100644 --- a/wp-includes/category.php +++ b/wp-includes/category.php @@ -5,7 +5,7 @@ function get_all_category_ids() { if ( ! $cat_ids = wp_cache_get('all_category_ids', 'category') ) { $cat_ids = $wpdb->get_col("SELECT cat_ID FROM $wpdb->categories"); - wp_cache_add('all_category_ids', $cat_ids, 'category'); + wp_cache_set('all_category_ids', $cat_ids, 'category'); } return $cat_ids; @@ -148,7 +148,7 @@ function &get_category(&$category, $output = OBJECT) { } else { if ( ! $_category = wp_cache_get($category, 'category') ) { $_category = $wpdb->get_row("SELECT * FROM $wpdb->categories WHERE cat_ID = '$category' LIMIT 1"); - wp_cache_add($category, $_category, 'category'); + wp_cache_set($category, $_category, 'category'); } } -- cgit