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();
}


Top ↑

Changelog

Changelog
VersionDescription
2.0.0Introduced.

The content displayed on this page has been created in part by processing WordPress source code files which are made available under the GPLv2 (or a later version) license by theĀ Free Software Foundation. In addition to this, the content includes user-written examples and information. All material is subject to review and curation by the WPPaste.com community.