W3cubDocs

/WordPress

WP_Object_Cache::flush(): true

Clears the object cache of all data.

Return

true Always returns true.

Source

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

	return true;
}

Changelog

Version Description
2.0.0 Introduced.

© 2003–2024 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/classes/wp_object_cache/flush