This repository has been archived on 2026-10-23. You can view files and clone it. You cannot open issues or pull requests or push a commit.
Files
studentersamfundet.no/wp/wp-content/plugins/debug-bar/panels/class-debug-bar-object-cache.php
T

25 lines
501 B
PHP

<?php
class Debug_Bar_Object_Cache extends Debug_Bar_Panel {
function init() {
$this->title( __('Object Cache', 'debug-bar') );
}
function prerender() {
global $wp_object_cache;
$this->set_visible( is_object($wp_object_cache) && method_exists($wp_object_cache, 'stats') );
}
function render() {
global $wp_object_cache;
ob_start();
echo "<div id='object-cache-stats'>";
$wp_object_cache->stats();
echo "</div>";
$out = ob_get_contents();
ob_end_clean();
echo $out;
}
}