wp_cache_init()WP 2.0.0

Sets up Object Cache Global and assigns it.

Хуков нет.

Возвращает

null. Ничего (null).

Использование

wp_cache_init();

Заметки

  • Global. WP_Object_Cache. $wp_object_cache

Список изменений

С версии 2.0.0 Введена.

Код wp_cache_init() WP 6.5.2

function wp_cache_init() {
	$GLOBALS['wp_object_cache'] = new WP_Object_Cache();
}