WP_Object_Cache::add_global_groups

Advertisement

Summery Summery

Sets the list of global cache groups.

Syntax Syntax

WP_Object_Cache::add_global_groups( array $groups )

Parameters Parameters

$groups

(array) (Required) List of groups that are global.

Source Source

File: wp-includes/class-wp-object-cache.php

	public function add_global_groups( $groups ) {
		$groups = (array) $groups;

		$groups              = array_fill_keys( $groups, true );
		$this->global_groups = array_merge( $this->global_groups, $groups );
	}

Advertisement

Changelog Changelog

Changelog
Version Description
3.0.0 Introduced.

Advertisement

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.

What are you looking for?