WordPress at a glance

wp_cache_flush() WP 1.0

Removes all cache items.

  • See: WP_Object_Cache::flush()
  • Global. WP_Object_Cache. $wp_object_cache Object cache global instance.
✈ 1 time = 0.000088s = very fast | 50000 times = 0.54s = very fast

No Hooks.

Return

true/false. False on failure, true on success

Usage

wp_cache_flush();

Code of wp_cache_flush: wp-includes/cache.php VER 5.0.1

<?php
function wp_cache_flush() {
	global $wp_object_cache;

	return $wp_object_cache->flush();
}

Related Functions

From tag: cache (caching)

No comments
    Hello, !     Log In . Register