From 9c01b969a2114e5c9c8a15746a4545a23c27cdc8 Mon Sep 17 00:00:00 2001 From: Ryan Boren 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: https://develop.svn.wordpress.org/trunk@6651 602fd350-edb4-49c9-b593-d223f7449a82 --- 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;