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 · 2
- wp_cache_switch_to_blog_fallback()Fallback logic for switching cache context when an object cache drop-in lacks a switch_to_blog() method.
- 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 7.0.4 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.