WP_Object_Cache::__construct() – Method | Developer.WordPress.org

Sets up object properties.

Source

public function __construct() {
	$this->multisite   = is_multisite();
	$this->blog_prefix = $this->multisite ? get_current_blog_id() . ':' : '';
}

View all references View on Trac View on GitHub

UsesDescription
is_multisite()wp-includes/load.php

Determines whether Multisite is enabled.

get_current_blog_id()wp-includes/load.php

Retrieves the current site ID.

Used byDescription
wp_cache_init()wp-includes/cache.php

Sets up Object Cache Global and assigns it.

Changelog

VersionDescription
2.0.8Introduced.