Strip back the stats in the memory based object cache to something less verbose and useless.

git-svn-id: http://svn.automattic.com/wordpress/trunk@16288 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
westi 2010-11-11 10:55:06 +00:00
parent 58c936f7df
commit 0027abcb1a

View File

@ -451,16 +451,11 @@ class WP_Object_Cache {
echo "<strong>Cache Hits:</strong> {$this->cache_hits}<br />";
echo "<strong>Cache Misses:</strong> {$this->cache_misses}<br />";
echo "</p>";
echo '<ul>';
foreach ($this->cache as $group => $cache) {
echo "<p>";
echo "<strong>Group:</strong> $group<br />";
echo "<strong>Cache:</strong>";
echo "</p>";
echo "<pre>";
echo esc_html( print_r( $cache, true ) );
echo "</pre>";
echo "<li><strong>Group:</strong> $group - ( " . number_format( strlen( serialize( $cache ) ) / 1024, 2 ) . 'k )</li>';
}
echo '</ul>';
}
/**