WP_Object_Cache::add_global_groups( array $groups )

Sets the list of global cache groups.

Parameters Parameters


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

Top ↑

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

Top ↑

Changelog Changelog

Version Description
3.0.0 Introduced.

Top ↑

User Contributed Notes User Contributed Notes

You must log in before being able to contribute a note or feedback.