Changeset 6651

Show
Ignore:
Timestamp:
01/25/08 01:19:53 (9 months ago)
Author:
ryan
Message:

Remove busted get_tags cache. get_terms does the caching for us. Props josephscott

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/wp-includes/category.php

    r6364 r6651  
    128128 
    129129function &get_tags($args = '') { 
    130     $key = md5( serialize( $args ) ); 
    131     if ( $cache = wp_cache_get( 'get_tags', 'category' ) ) 
    132         if ( isset( $cache[ $key ] ) ) 
    133             return apply_filters('get_tags', $cache[$key], $args); 
    134  
    135  
    136130    $tags = get_terms('post_tag', $args); 
    137131 
     
    140134 
    141135    $cache[ $key ] = $tags; 
    142     wp_cache_set( 'get_tags', $cache, 'category' ); 
    143136 
    144137    $tags = apply_filters('get_tags', $tags, $args);