WP_Object_Cache::flush_group()publicWP 6.1.0

Removes all cache items in a group.

Метод класса: WP_Object_Cache{}

Хуков нет.

Возвращает

true. Always returns true.

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

$WP_Object_Cache = new WP_Object_Cache();
$WP_Object_Cache->flush_group( $group );
$group(строка) (обязательный)
Name of group to remove from cache.

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

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

Код WP_Object_Cache::flush_group() WP 6.4.3

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

	return true;
}