wp_cache_delete_multiple() WordPress Function

The wp_cache_delete_multiple() function deletes multiple cache entries at once. It takes an array of keys as its first argument and an optional array of flags as its second argument.

wp_cache_delete_multiple( array $keys, string $group = '' ) #

Deletes multiple values from the cache in one call.


Description

Top ↑

See also


Top ↑

Parameters

$keys

(array)(Required)Array of keys under which the cache to deleted.

$group

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

Default value: ''


Top ↑

Return

(bool[]) Array of return values, grouped by key. Each value is either true on success, or false if the contents were not deleted.


Top ↑

Source

File: wp-includes/cache.php

function wp_cache_delete_multiple( array $keys, $group = '' ) {
	global $wp_object_cache;

	return $wp_object_cache->delete_multiple( $keys, $group );
}


Top ↑

Changelog

Changelog
VersionDescription
6.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.