From a91abd41d8e034007357e1698dcf9e751fb6394d Mon Sep 17 00:00:00 2001
From: Peter Westwood
Date: Thu, 11 Nov 2010 10:55:06 +0000
Subject: [PATCH] Strip back the stats in the memory based object cache to
something less verbose and useless.
git-svn-id: https://develop.svn.wordpress.org/trunk@16288 602fd350-edb4-49c9-b593-d223f7449a82
---
wp-includes/cache.php | 11 +++--------
1 file changed, 3 insertions(+), 8 deletions(-)
diff --git a/wp-includes/cache.php b/wp-includes/cache.php
index 983e6baa0a..dbefabf25c 100644
--- a/wp-includes/cache.php
+++ b/wp-includes/cache.php
@@ -451,16 +451,11 @@ class WP_Object_Cache {
echo "Cache Hits: {$this->cache_hits}
";
echo "Cache Misses: {$this->cache_misses}
";
echo "
";
-
+ echo '";
- echo esc_html( print_r( $cache, true ) );
- echo "
";
+ echo "Group: $group - ( " . number_format( strlen( serialize( $cache ) ) / 1024, 2 ) . 'k )';
}
+ echo '';
}
/**