Make WordPress Core


Ignore:
File:
1 edited

Legend:

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

    r16469 r15148  
    111111 * @see WP_Object_Cache::replace()
    112112 *
    113  * @param int|string $key What to call the contents in the cache
     113 * @param int|string $id 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 $key What to call the contents in the cache
     132 * @param int|string $id 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
    174176 */
    175177function wp_cache_reset() {
     
    450452        echo "<strong>Cache Misses:</strong> {$this->cache_misses}<br />";
    451453        echo "</p>";
    452         echo '<ul>';
     454
    453455        foreach ($this->cache as $group => $cache) {
    454             echo "<li><strong>Group:</strong> $group - ( " . number_format( strlen( serialize( $cache ) ) / 1024, 2 ) . 'k )</li>';
     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>";
    455462        }
    456         echo '</ul>';
    457463    }
    458464
Note: See TracChangeset for help on using the changeset viewer.