pods_cache_clear

Clear a cached value.

Description

(bool|mixed|null|void) pods_cache_clear( (constant) $key = true, (string) $group = '' ); 

Returns (bool|mixed|null|void)

Parameters (2)

0. $key — Optional. (constant) => true
Key for the cache
1. $group — Optional. (string) => ''
Key for the group

Usage

  1. if ( !function_exists( 'pods_cache_clear' ) ) { 
  2. require_once ABSPATH . PLUGINDIR . 'pods-custom-content-types-and-fields/includes/general.php'; 
  3.  
  4. // Key for the cache 
  5. $key = true; 
  6.  
  7. // (optional) Key for the group 
  8. $group = ''; 
  9.  
  10. // NOTICE! Understand what this does before running. 
  11. $result = pods_cache_clear($key, $group); 
  12.  

Defined (1)

The function is defined in the following location(s).

/includes/general.php  
  1. function pods_cache_clear ( $key = true, $group = '' ) { 
  2. return pods_view_clear( $key, 'cache', $group );