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() . ':' : '';
}
| Uses | Description |
|---|---|
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 by | Description |
|---|---|
wp_cache_init()wp-includes/cache.php | Sets up Object Cache Global and assigns it. |
Changelog
| Version | Description |
|---|---|
| 2.0.8 | Introduced. |