On this page
wp_cache_delete_multiple( array $keys, string $group = '' ): bool[]
Deletes multiple values from the cache in one call.
Description
See also
Parameters
$keysarray Required-
Array of keys under which the cache to deleted.
$groupstring Optional-
Where the cache contents are grouped.
Default:
''
Return
bool[] Array of return values, grouped by key. Each value is either true on success, or false if the contents were not deleted.
Source
File: wp-includes/cache.php. View all references
function wp_cache_delete_multiple( array $keys, $group = '' ) {
global $wp_object_cache;
return $wp_object_cache->delete_multiple( $keys, $group );
}
Related
Uses
| Uses | Description |
|---|---|
| WP_Object_Cache::delete_multiple() wp-includes/class-wp-object-cache.php | Deletes multiple values from the cache in one call. |
Used By
| Used By | Description |
|---|---|
| _clear_modified_cache_on_transition_comment_status() wp-includes/comment.php | Clears the lastcommentmodified cached value when a comment status is changed. |
| clean_network_cache() wp-includes/ms-network.php | Removes a network from the object cache. |
| clean_object_term_cache() wp-includes/taxonomy.php | Removes the taxonomy relationship to terms from the cache. |
| clean_term_cache() wp-includes/taxonomy.php | Removes all of the term IDs from the cache. |
| clean_comment_cache() wp-includes/comment.php | Removes a comment from the object cache. |
| wp_insert_comment() wp-includes/comment.php | Inserts a comment into the database. |
| delete_metadata() wp-includes/meta.php | Deletes metadata for the specified object. |
Changelog
| Version | Description |
|---|---|
| 6.0.0 | Introduced. |
© 2003–2022 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/functions/wp_cache_delete_multiple