Property | Type | Description | |
---|---|---|---|
$cache_modes | array | Array of available cache modes |
Method | Description | |
---|---|---|
clear ( string | boolean $key = true, string $cache_mode = null, string $group = '' ) : boolean | ||
expires ( array | boolean | integer $expires, string $cache_mode = 'cache' ) : boolean | integer | Advanced $expires handling | |
get ( string $key, string $cache_mode = 'cache', string $group = '', string $callback = null ) : boolean | mixed | null | void | ||
get_key ( string $key, string $group_key = '' ) : string | Get the cache key, salted with current Pods version, peppered with md5 if too long | |
get_template_part ( $_view, null | array $_data = null ) : boolean | mixed | string | void | ||
set ( string $key, mixed $value, integer $expires, string $cache_mode = null, string $group = '' ) : boolean | mixed | null | string | void | ||
view ( string $view, array | null $data = null, boolean | integer | array $expires = false, string $cache_mode = 'cache' ) : boolean | mixed | null | string | void |
Method | Description | |
---|---|---|
__construct ( ) : PodsView | ||
locate_template ( $_view ) : boolean | mixed | string | void |
public static get ( string $key, string $cache_mode = 'cache', string $group = '', string $callback = null ) : boolean | mixed | null | void | ||
$key | string | Key for the cache |
$cache_mode | string | (optional) Decides the caching method to use for the view. |
$group | string | (optional) Set the group of the value. |
$callback | string | (optional) Callback function to run to set the value if not cached. |
return | boolean | mixed | null | void |
public static set ( string $key, mixed $value, integer $expires, string $cache_mode = null, string $group = '' ) : boolean | mixed | null | string | void | ||
$key | string | Key for the cache |
$value | mixed | Value to add to the cache |
$expires | integer | (optional) Time in seconds for the cache to expire, if 0 no expiration. |
$cache_mode | string | (optional) Decides the caching method to use for the view. |
$group | string | (optional) Set the group of the value. |
return | boolean | mixed | null | string | void |
public static view ( string $view, array | null $data = null, boolean | integer | array $expires = false, string $cache_mode = 'cache' ) : boolean | mixed | null | string | void | ||
$view | string | Path of the view file |
$data | array | null | (optional) Data to pass on to the template |
$expires | boolean | integer | array | (optional) Time in seconds for the cache to expire, if 0 no expiration. |
$cache_mode | string | (optional) Decides the caching method to use for the view. |
return | boolean | mixed | null | string | void |
static public array $cache_modes | ||
return | array |