Make WordPress Core

Changeset 16288


Ignore:
Timestamp:
11/11/2010 10:55:06 AM (14 years ago)
Author:
westi
Message:

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

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-includes/cache.php

    r15884 r16288  
    452452        echo "<strong>Cache Misses:</strong> {$this->cache_misses}<br />";
    453453        echo "</p>";
    454 
     454        echo '<ul>';
    455455        foreach ($this->cache as $group => $cache) {
    456             echo "<p>";
    457             echo "<strong>Group:</strong> $group<br />";
    458             echo "<strong>Cache:</strong>";
    459             echo "</p>";
    460             echo "<pre>";
    461             echo esc_html( print_r( $cache, true ) );
    462             echo "</pre>";
     456            echo "<li><strong>Group:</strong> $group - ( " . number_format( strlen( serialize( $cache ) ) / 1024, 2 ) . 'k )</li>';
    463457        }
     458        echo '</ul>';
    464459    }
    465460
Note: See TracChangeset for help on using the changeset viewer.