'Show WP_CACHE stat',
'value' => true,
);
return $settings;
}
function ref($refs, $a, $b, $settings)
{
if (!$settings['show_wp_cache_stat']['value']) return $refs;
global $wp_object_cache;
ob_start();
$wp_object_cache->stats();
$refs['wp_cache'] = array(
'title' => 'WP Cache',
'content' => 'WP Cache
' . ob_get_clean(),
);
return $refs;
}
public static function get_instance()
{
if (null === self::$instance) {
self::$instance = new self();
}
return self::$instance;
}
}
Debug_Tool_WP_Cache_Stat::get_instance();