mirror of
https://github.com/WordPress/WordPress.git
synced 2024-09-29 07:37:44 +02: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 Hits:</strong> {$this->cache_hits}<br />";
|
||||||
echo "<strong>Cache Misses:</strong> {$this->cache_misses}<br />";
|
echo "<strong>Cache Misses:</strong> {$this->cache_misses}<br />";
|
||||||
echo "</p>";
|
echo "</p>";
|
||||||
|
echo '<ul>';
|
||||||
foreach ($this->cache as $group => $cache) {
|
foreach ($this->cache as $group => $cache) {
|
||||||
echo "<p>";
|
echo "<li><strong>Group:</strong> $group - ( " . number_format( strlen( serialize( $cache ) ) / 1024, 2 ) . 'k )</li>';
|
||||||
echo "<strong>Group:</strong> $group<br />";
|
|
||||||
echo "<strong>Cache:</strong>";
|
|
||||||
echo "</p>";
|
|
||||||
echo "<pre>";
|
|
||||||
echo esc_html( print_r( $cache, true ) );
|
|
||||||
echo "</pre>";
|
|
||||||
}
|
}
|
||||||
|
echo '</ul>';
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Loading…
Reference in New Issue
Block a user