wp_cache_init()
Sets up Object Cache Global and assigns it.
No Hooks.
Returns
null. Nothing (null).
Usage
wp_cache_init();
Notes
- Global. WP_Object_Cache. $wp_object_cache
Changelog
| Since 2.0.0 | Introduced. |
wp_cache_init() wp cache init code WP 6.9
function wp_cache_init() {
$GLOBALS['wp_object_cache'] = new WP_Object_Cache();
}