wp_cache_init() WordPress Function
The wp_cache_init() function is used to initialize the WordPress caching system. This function must be called before any other caching functions are called.
wp_cache_init() #
Sets up Object Cache Global and assigns it.
Source
File: wp-includes/cache.php
function wp_cache_init() { $GLOBALS['wp_object_cache'] = new WP_Object_Cache(); }
Expand full source codeCollapse full source codeView on TracView on GitHub
Changelog
Version | Description |
---|---|
2.0.0 | Introduced. |