HEX
Server: nginx
System: Linux pool195-106-36.bur.atomicsites.net 6.12.57+deb12-amd64 #1 SMP PREEMPT_DYNAMIC Debian 6.12.57-1~bpo12+1 (2025-11-17) x86_64
User: (0)
PHP: 8.3.32
Disabled: pcntl_fork
Upload Files
File: //wordpress/mu-plugins/debug-bar/panels/class-debug-bar-object-cache.php
<?php

class Atomic_Debug_Bar_Object_Cache extends Atomic_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;
	}
}