クラス WP_Object_Cache::stats()
2015/01/10
WP_Object_Cache::stats()
定義ファイル :/blog/wp-includes/cache.php
1 2 3 4 5 6 7 8 9 10 11 | public function stats() { echo "<p>"; echo "<strong>Cache Hits:</strong> {$this->cache_hits}<br />"; echo "<strong>Cache Misses:</strong> {$this->cache_misses}<br />"; echo "</p>"; echo '<ul>'; foreach ($this->cache as $group => $cache) { echo "<li><strong>Group:</strong> $group - ( " . number_format( strlen( serialize( $cache ) ) / 1024, 2 ) . 'k )</li>'; } echo '</ul>'; } |