WP_Object_Cache::__construct() WordPress Method
The WP_Object_Cache class is used to store data in memory for faster access. The object cache is used to improve performance by storing data in memory so that it can be accessed faster. The object cache is used by Wordpress to store data such as the results of database queries. The __construct() method initializes the object cache. This method is called when the object cache is first created. This method sets the cache type and the cache directory.
WP_Object_Cache::__construct() #
Sets up object properties; PHP 5 style constructor.
Source
File: wp-includes/class-wp-object-cache.php
public function __construct() { $this->multisite = is_multisite(); $this->blog_prefix = $this->multisite ? get_current_blog_id() . ':' : ''; }
Expand full source codeCollapse full source codeView on TracView on GitHub
Changelog
Version | Description |
---|---|
2.0.8 | Introduced. |