WP_Object_Cache::flush_group( string $group ): true

Removes all cache items in a group.


Parameters

$group string Required
Name of group to remove from cache.

Top ↑

Return

true Always returns true.


Top ↑

Source

File: wp-includes/class-wp-object-cache.php. View all references

public function flush_group( $group ) {
	unset( $this->cache[ $group ] );

	return true;
}


Top ↑

Changelog

Changelog
Version Description
6.1.0 Introduced.

Top ↑

User Contributed Notes

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