WPDev.one
Core Function
View Source on Trac ↗

wp_cache_delete()

wp_cache_delete( mixed $key, mixed $group = '' )

Removes the cache contents matching key and group.

Parameters 1 required

Name / Type Description
(int

| string) $key What the contents in the cache are called.

Required
$group
string

Optional. Where the cache contents are grouped. Default empty.

Return Value

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

Function Information

Since Version
2.0.0
Source File
wp-includes/cache.php
Advertisement