wp_cache_delete

Advertisement

Summery Summery

Removes the cache contents matching key and group.

Syntax Syntax

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

Parameters Parameters

$key

(Required) What the contents in the cache are called.

$group

(Optional) Where the cache contents are grouped.

Default value: ''

Return Return

(bool) True on successful removal, false on failure.

Source Source

File: wp-includes/cache.php

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

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

Advertisement

Changelog Changelog

Changelog
Version Description
2.0.0 Introduced.

See also See also

Advertisement

Leave a Reply