<?php

function debugging() {
	global $wp_object_cache;

	$tmp = wp_suspend_cache_addition(true);

	error_log( "--------------" );
	foreach ($wp_object_cache->cache as $group => $cache) {
		error_log("$group - ". count($cache)  ." items");
	}
	error_log( "--------------" );

	$discarded = get_posts ('post_type=post&numberposts=50');

	error_log( "--------------" );
	foreach ($wp_object_cache->cache as $group => $cache) {
		error_log("$group - ". count($cache)  ." items");
	}
	error_log( "--------------" );

	wp_suspend_cache_addition($tmp);

}

add_action ( 'init', 'debugging' );

?>
