On this page
wp_cache_flush(): bool
Removes all cache items.
Description
See also
Return
bool True on success, false on failure.
Source
File: wp-includes/cache.php. View all references
function wp_cache_flush() {
global $wp_object_cache;
return $wp_object_cache->flush();
}
Related
Uses
| Uses | Description |
|---|---|
| WP_Object_Cache::flush() wp-includes/class-wp-object-cache.php | Clears the object cache of all data. |
Used By
| Used By | Description |
|---|---|
| wp_cache_flush_runtime() wp-includes/cache.php | Removes all cache items from the in-memory runtime cache. |
| wp_upgrade() wp-admin/includes/upgrade.php | Runs WordPress Upgrade functions. |
| wp_install() wp-admin/includes/upgrade.php | Installs the site. |
| update_core() wp-admin/includes/update-core.php | Upgrades the core of WordPress. |
Changelog
| Version | Description |
|---|---|
| 2.0.0 | Introduced. |
© 2003–2022 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/functions/wp_cache_flush