classes/models/FrmFormApi.php 1 location
|
@@ 146-154 (lines=9) @@
|
| 143 |
|
* @since 3.06 |
| 144 |
|
* @return array |
| 145 |
|
*/ |
| 146 |
|
protected function get_cached() { |
| 147 |
|
$cache = get_option( $this->cache_key ); |
| 148 |
|
|
| 149 |
|
if ( empty( $cache ) || empty( $cache['timeout'] ) || current_time( 'timestamp' ) > $cache['timeout'] ) { |
| 150 |
|
return false; // Cache is expired |
| 151 |
|
} |
| 152 |
|
|
| 153 |
|
return json_decode( $cache['value'], true ); |
| 154 |
|
} |
| 155 |
|
|
| 156 |
|
/** |
| 157 |
|
* @since 3.06 |
deprecated/FrmEDD_SL_Plugin_Updater.php 1 location
|
@@ 373-382 (lines=10) @@
|
| 370 |
|
exit; |
| 371 |
|
} |
| 372 |
|
|
| 373 |
|
public function get_cached_version_info( $cache_key = '' ) { |
| 374 |
|
$cache = get_option( $cache_key ); |
| 375 |
|
|
| 376 |
|
if ( empty( $cache['timeout'] ) || current_time( 'timestamp' ) > $cache['timeout'] ) { |
| 377 |
|
return false; // Cache is expired |
| 378 |
|
} |
| 379 |
|
|
| 380 |
|
return json_decode( $cache['value'] ); |
| 381 |
|
|
| 382 |
|
} |
| 383 |
|
|
| 384 |
|
public function set_version_info_cache( $value = '', $cache_key = '' ) { |
| 385 |
|
$data = array( |