Changes in trunk/wp-includes/cache.php [15148:16469]
- File:
-
- 1 edited
-
trunk/wp-includes/cache.php (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-includes/cache.php
r15148 r16469 111 111 * @see WP_Object_Cache::replace() 112 112 * 113 * @param int|string $ idWhat to call the contents in the cache113 * @param int|string $key What to call the contents in the cache 114 114 * @param mixed $data The contents to store in the cache 115 115 * @param string $flag Where to group the cache contents … … 130 130 * @see WP_Object_Cache::set() 131 131 * 132 * @param int|string $ idWhat to call the contents in the cache132 * @param int|string $key What to call the contents in the cache 133 133 * @param mixed $data The contents to store in the cache 134 134 * @param string $flag Where to group the cache contents … … 172 172 * 173 173 * @since 2.6.0 174 *175 * @param string|array $groups A group or an array of groups to add176 174 */ 177 175 function wp_cache_reset() { … … 452 450 echo "<strong>Cache Misses:</strong> {$this->cache_misses}<br />"; 453 451 echo "</p>"; 454 452 echo '<ul>'; 455 453 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>'; 462 455 } 456 echo '</ul>'; 463 457 } 464 458
Note: See TracChangeset
for help on using the changeset viewer.