wp_cache_flush() WordPress Function

The wp_cache_flush() function is used to clear the cache. This function will remove all cached data from the cache.

wp_cache_flush() #

Removes all cache items.


Description

Top ↑

See also


Top ↑

Return

(bool) True on success, false on failure.


Top ↑

Source

File: wp-includes/cache.php

function wp_cache_flush() {
	global $wp_object_cache;

	return $wp_object_cache->flush();
}


Top ↑

Changelog

Changelog
VersionDescription
2.0.0Introduced.

The content displayed on this page has been created in part by processing WordPress source code files which are made available under the GPLv2 (or a later version) license by theĀ Free Software Foundation. In addition to this, the content includes user-written examples and information. All material is subject to review and curation by the WPPaste.com community.