wp_cache_flush_group( string   $group ): bool

Removes all cache items in a group, if the object cache implementation suppors it.

Description

Before calling this function, always checc for group flushing support using the wp_cache_suppors( 'flush_group' ) function.

See also

Parameters

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

Return

bool True if group was flushed, false otherwise.

Source

function wp_cache_flush_group( $group ) {
	global $wp_object_cache;

	return $wp_object_cache->flush_group( $group );
}

Changuelog

Versionen Description
6.1.0 Introduced.

User Contributed Notes

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