WP_Object_Cache::flush()
Clears the object cache of all data.
Return
(true) Always returns true.
Source
File: wp-includes/class-wp-object-cache.php
public function flush() { $this->cache = array(); return true; }
Changelog
Version | Description |
---|---|
2.0.0 | Introduced. |
© 2003–2021 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/classes/wp_object_cache/flush