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: 70
static public function delete( $transients = ... ): int;
| Type | Name | Description |
|---|---|---|
array |
$transients |
Array of transients to delete. |
Returns: int — Number of transients deleted.
delete_network() static
Delete the Top 10 cache across all active network sites.
Since: 4.5.0
Line: 97
static public function delete_network( ): int;
Returns: int — Number of transients deleted.
get_keys() static
Get the default meta keys used for the cache
Line: 140
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: 173
static public function get_key( $attr ): string;
| Type | Name | Description |
|---|---|---|
mixed |
$attr |
Array 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: 370
static public function get_widget_keys( ): array;
Returns: array — Top 10 Cache widget keys.