WP_Object_Cache::delete

SummerySummery

Removes the contents of the cache key in the group.

Syntax

WP_Object_Cache::delete( int|string $key, string $group = 'default', bool $deprecated = false )

DescriptionDescription

If the cache key does not exist in the group, then nothing will happen.

ParametersParameters

$key

(int|string) (Required) What the contents in the cache are called.

$group

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

Default value: 'default'

$deprecated

(bool) (Optional) Unused.

Default value: false

ReturnReturn

(bool) False if the contents weren't deleted and true on success.

SourceSource

File: wp-includes/class-wp-object-cache.php


			

ChangelogChangelog

Changelog
Version Description
2.0.0 Introduced.
Scroll to Top