mirror of
https://github.com/WordPress/WordPress.git
synced 2025-03-25 01:18:42 +00:00
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:
parent
58c936f7df
commit
0027abcb1a
@ -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>';
|
||||
}
|
||||
|
||||
/**
|
||||
|
Loading…
x
Reference in New Issue
Block a user