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
This commit is contained in:
parent
06bf2f9e66
commit
a91abd41d8
|
@ -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