WP_Object_Cache::flush()publicWP 2.0.0

Clears the object cache of all data.

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.

WP_Object_Cache::flush() code WP 6.5.4

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

	return true;
}