From 2d656cdb15e088cf673b08000934e8ec490b0b05 Mon Sep 17 00:00:00 2001 From: ryan Date: Fri, 25 Jan 2008 01:19:53 +0000 Subject: [PATCH] Remove busted get_tags cache. get_terms does the caching for us. Props josephscott git-svn-id: http://svn.automattic.com/wordpress/trunk@6651 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-includes/category.php | 7 ------- 1 file changed, 7 deletions(-) diff --git a/wp-includes/category.php b/wp-includes/category.php index 1704280c39..e49be2d8b7 100644 --- a/wp-includes/category.php +++ b/wp-includes/category.php @@ -127,19 +127,12 @@ function sanitize_category_field($field, $value, $cat_id, $context) { // Tags function &get_tags($args = '') { - $key = md5( serialize( $args ) ); - if ( $cache = wp_cache_get( 'get_tags', 'category' ) ) - if ( isset( $cache[ $key ] ) ) - return apply_filters('get_tags', $cache[$key], $args); - - $tags = get_terms('post_tag', $args); if ( empty($tags) ) return array(); $cache[ $key ] = $tags; - wp_cache_set( 'get_tags', $cache, 'category' ); $tags = apply_filters('get_tags', $tags, $args); return $tags;