classes/controllers/FrmAddonsController.php 1 location
|
@@ 200-202 (lines=3) @@
|
| 197 |
|
$cache_key = self::get_cache_key( $license ); |
| 198 |
|
$cache = get_option( $cache_key ); |
| 199 |
|
|
| 200 |
|
if ( empty( $cache ) || empty( $cache['timeout'] ) || current_time( 'timestamp' ) > $cache['timeout'] ) { |
| 201 |
|
return false; // Cache is expired |
| 202 |
|
} |
| 203 |
|
|
| 204 |
|
return json_decode( $cache['value'], true ); |
| 205 |
|
} |
deprecated/FrmEDD_SL_Plugin_Updater.php 1 location
|
@@ 376-378 (lines=3) @@
|
| 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 |
|
|