wordpress / latest / functions / wp_cache_delete.html

wp_cache_delete( int|string $key, string $group = '' ): bool

Removes the cache contents matching key and group.

Description

See also

Parameters

$key int|string Required
What the contents in the cache are called.
$group string Optional
Where the cache contents are grouped.

Default: ''

Return

bool True on successful removal, false on failure.

Source

File: wp-includes/cache.php. View all references

function wp_cache_delete( $key, $group = '' ) {
	global $wp_object_cache;

	return $wp_object_cache->delete( $key, $group );
}

Uses

Uses Description

Used By

Used By Description

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_delete