WP_Object_Cache::flush_group()
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 Object Cache::flush group WP 6.7.2
public function flush_group( $group ) { unset( $this->cache[ $group ] ); return true; }