Make WordPress Core


Ignore:
File:
1 edited

Legend:

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

    r15148 r16469  
    111111 * @see WP_Object_Cache::replace()
    112112 *
    113  * @param int|string $id What to call the contents in the cache
     113 * @param int|string $key What to call the contents in the cache
    114114 * @param mixed $data The contents to store in the cache
    115115 * @param string $flag Where to group the cache contents
     
    130130 * @see WP_Object_Cache::set()
    131131 *
    132  * @param int|string $id What to call the contents in the cache
     132 * @param int|string $key What to call the contents in the cache
    133133 * @param mixed $data The contents to store in the cache
    134134 * @param string $flag Where to group the cache contents
     
    172172 *
    173173 * @since 2.6.0
    174  *
    175  * @param string|array $groups A group or an array of groups to add
    176174 */
    177175function wp_cache_reset() {
     
    452450        echo "<strong>Cache Misses:</strong> {$this->cache_misses}<br />";
    453451        echo "</p>";
    454 
     452        echo '<ul>';
    455453        foreach ($this->cache as $group => $cache) {
    456             echo "<p>";
    457             echo "<strong>Group:</strong> $group<br />";
    458             echo "<strong>Cache:</strong>";
    459             echo "<pre>";
    460             print_r($cache);
    461             echo "</pre>";
     454            echo "<li><strong>Group:</strong> $group - ( " . number_format( strlen( serialize( $cache ) ) / 1024, 2 ) . 'k )</li>';
    462455        }
     456        echo '</ul>';
    463457    }
    464458
Note: See TracChangeset for help on using the changeset viewer.