WP_Object_Cache::flush()
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() WP Object Cache::flush code WP 6.7.2
public function flush() { $this->cache = array(); return true; }