WordPress at a glance
function is not described

WP_Object_Cache::flush() public WP 2.0.0

Clears the object cache of all data.

{} It's a method of the class: WP_Object_Cache{}

No Hooks.

Return

true. Always returns true.

Usage

$WP_Object_Cache = new WP_Object_Cache();
$WP_Object_Cache->flush();

Changelog

Since 2.0.0 Introduced.

Code of WP_Object_Cache::flush() WP 5.7.2

<?php
public function flush() {
	$this->cache = array();

	return true;
}