WP_Object_Cache::stats

Advertisement

Summery Summery

Echoes the stats of the caching.

Syntax Syntax

WP_Object_Cache::stats()

Description Description

Gives the cache hits, and cache misses. Also prints every cached group, key and the data.

Source Source

File: wp-includes/class-wp-object-cache.php

		if ( $this->multisite && ! isset( $this->global_groups[ $group ] ) ) {
			$key = $this->blog_prefix . $key;
		}

		if ( is_object( $data ) ) {
			$data = clone $data;
		}

		$this->cache[ $group ][ $key ] = $data;
		return true;

Advertisement

Changelog Changelog

Changelog
Version Description
2.0.0 Introduced.

Advertisement

Leave a Reply