On this page
wp_cache_init()
Sets up Object Cache Global and assigns it.
Source
File: wp-includes/cache.php. View all references
function wp_cache_init() {
$GLOBALS['wp_object_cache'] = new WP_Object_Cache();
}
Related
Uses
| Uses | Description |
|---|---|
| WP_Object_Cache::__construct() wp-includes/class-wp-object-cache.php | Sets up object properties; PHP 5 style constructor. |
Used By
| Used By | Description |
|---|---|
| wp_start_object_cache() wp-includes/load.php | Start the WordPress object cache. |
| switch_to_blog() wp-includes/ms-blogs.php | Switch the current blog. |
| restore_current_blog() wp-includes/ms-blogs.php | Restore the current blog, after calling switch_to_blog() . |
Changelog
| Version | Description |
|---|---|
| 2.0.0 | Introduced. |
© 2003–2022 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/functions/wp_cache_init