WP_AI_Client_Cache::deleteMultiple( iterable $keys ): bool

In this article

Deletes multiple cache items in a single operation.

Parameters

$keys<span class="iterable”>iterablerequired
A list of string-based keys to be deleted.

Return

bool True if the items were successfully removed. False if there was an error.

Source

public function deleteMultiple( $keys ): bool {
	$keys_array = $this->iterable_to_array( $keys );
	$results    = wp_cache_delete_multiple( $keys_array, self::CACHE_GROUP );

	// Return true only if all operations succeeded.
	return ! in_array( false, $results, true );
}

Changelog

VersionDescription
7.0.0Introduced.

User Contributed Notes

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