Changeset 5248 for trunk/wp-includes/category.php
- Timestamp:
- 04/12/2007 02:27:12 AM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-includes/category.php
r5234 r5248 9 9 if ( ! $cat_ids = wp_cache_get('all_category_ids', 'category') ) { 10 10 $cat_ids = $wpdb->get_col("SELECT cat_ID FROM $wpdb->categories"); 11 wp_cache_ set('all_category_ids', $cat_ids, 'category');11 wp_cache_add('all_category_ids', $cat_ids, 'category'); 12 12 } 13 13 … … 140 140 141 141 $cache[ $key ] = $categories; 142 wp_cache_ set( 'get_categories', $cache, 'category' );142 wp_cache_add( 'get_categories', $cache, 'category' ); 143 143 144 144 $categories = apply_filters('get_categories', $categories, $r); … … 161 161 if ( ! $_category = wp_cache_get($category, 'category') ) { 162 162 $_category = $wpdb->get_row("SELECT * FROM $wpdb->categories WHERE cat_ID = '$category' LIMIT 1"); 163 wp_cache_ set($category, $_category, 'category');163 wp_cache_add($category, $_category, 'category'); 164 164 } 165 165 }
Note: See TracChangeset
for help on using the changeset viewer.