wp_cache_init()
- Since
- 2.0.0
- Source
wp-includes/cache.php:21
Sets up Object Cache Global and assigns it.
Uses · 1
- WP_Object_Cache::__construct()Sets up object properties.
Used by · 3
- restore_current_blog()Restores the current blog, after calling switch_to_blog().
- switch_to_blog()Switches the current blog.
- wp_start_object_cache()Starts the WordPress object cache.
Source
function wp_cache_init() { $GLOBALS['wp_object_cache'] = new WP_Object_Cache();}History
Introduced in 2.0.0. Unchanged from 6.7.7 through 7.1.0.
Signature, return type and hooks compared across 5 parsed releases.
About this page
- Parsed data
- Generated from the wordpress-develop 6.9.7 tag, from
src/wp-includes/cache.php, and regenerated for each WordPress release so it tracks the code rather than a snapshot of it. - Corrections
- Something wrong on this page? Report it and it gets fixed in the next regeneration.