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

Removes the cache contents matching key and group.


Description Description

See also See also


Top ↑

Parameters Parameters

$key

(int|string) (Required) What the contents in the cache are called.

$group

(string) (Optional) Where the cache contents are grouped.

Default value: ''


Top ↑

Return Return

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


Top ↑

Source Source

File: wp-includes/cache.php

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

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

Top ↑

Changelog Changelog

Changelog
Version Description
2.0.0 Introduced.


Top ↑

User Contributed Notes User Contributed Notes

You must log in before being able to contribute a note or feedback.