wp_cache_init

Sets up Object Cache Global and assigns it.

Description

wp_cache_init(); 

Usage

  1. if ( !function_exists( 'wp_cache_init' ) ) { 
  2. require_once ABSPATH . WPINC . '/cache.php'; 
  3.  
  4.  
  5. // NOTICE! Understand what this does before running. 
  6. $result = wp_cache_init(); 
  7.  

Defined (1)

The function is defined in the following location(s).

/wp-includes/cache.php  
  1. function wp_cache_init() { 
  2. $GLOBALS[wp_object_cache] = new WP_Object_Cache();