Make WordPress Core


Ignore:
Timestamp:
01/25/2008 01:19:53 AM (18 years ago)
Author:
ryan
Message:

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

File:
1 edited

Legend:

Unmodified
Added
Removed
  • 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);
Note: See TracChangeset for help on using the changeset viewer.