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