Delete an item from the cache by its unique key.
Parameters
$keystringrequired- The unique cache key of the item to delete.
Source
public function delete( $key ): bool {
return wp_cache_delete( $key, $this->get_cache_group() );
}
Changelog
| Version | Description |
|---|---|
| 7.0.0 | Introduced. |
User Contributed Notes
You must log in before being able to contribute a note or feedback.