Recent

Cache class

Cache

Cache class.

Namespace: WebberZone\Top_Ten\Util
Since: 3.3.0
Source: includes/util/class-cache.php line 21

Methods

__construct()

Constructor class.

Since: 3.3.0
Line: 28

public function __construct(  );

ajax_clearcache()

Function to clear the Top 10 Cache with Ajax.

Since: 2.2.0
Line: 37

public function ajax_clearcache(  );

delete() static

Delete the Top 10 cache.

Since: 2.3.0
Line: 62

static public function delete( $transients = ... ): int;
TypeNameDescription
array$transientsArray of transients to delete.

Returns: int — Number of transients deleted.

get_keys() static

Get the default meta keys used for the cache

Line: 87

static public function get_keys(  ): array;

Returns: array — Transient meta keys

get_key() static

Get the cache key based on a list of parameters.

Since: 4.2.0
Line: 120

static public function get_key( $attr ): string;
TypeNameDescription
mixed$attrArray of attributes typically.

Returns: string — Cache meta key

get_widget_keys() static

Get the transient names for the Top 10 widgets.

Since: 2.3.0
Line: 317

static public function get_widget_keys(  ): array;

Returns: array — Top 10 Cache widget keys.