WordPress at Your Fingertips

wp_cache_flush() WP 1.0

Removes all cache items.

1 time — 0.000088 sec (very fast) | 50000 times — 0.54 sec (very fast)

No Hooks.

Return

true|false. True on success, false on failure.

Usage

wp_cache_flush();

Notes

Changelog

Since 2.0.0 Introduced.

Code of wp_cache_flush() WP 5.8.1

function wp_cache_flush() {
	global $wp_object_cache;

	return $wp_object_cache->flush();
}

cache (caching)

No comments
    Log In