WP_Object_Cache::flush() WordPress Method
The WP_Object_Cache::flush() method is used to clear the object cache. This is useful when you need to clear the cache for all objects, or when you need to clear the cache for a specific object.
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; }
Expand full source codeCollapse full source codeView on TracView on GitHub
Changelog
Version | Description |
---|---|
2.0.0 | Introduced. |