WP_AI_Client_Cache::clear
Wipes clean the entire cache's keys.
This method only clears the cache group used by this adapter. If the underlying cache implementation does not support group flushing, this method returns false.
Метод класса: WP_AI_Client_Cache{}
Хуков нет.
Возвращает
bool. True on success and false on failure.
Использование
$WP_AI_Client_Cache = new WP_AI_Client_Cache(); $WP_AI_Client_Cache->clear(): bool;
Список изменений
| С версии 7.0.0 | Введена. |
Код WP_AI_Client_Cache::clear() WP AI Client Cache::clear WP 7.1.2
public function clear(): bool {
if ( ! function_exists( 'wp_cache_supports' ) || ! wp_cache_supports( 'flush_group' ) ) {
return false;
}
return wp_cache_flush_group( $this->get_cache_group() );
}