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 |
|
|
classes/controllers/FrmAddonsController.php 1 location
|
@@ 239-241 (lines=3) @@
|
| 236 |
|
$cache_key = self::get_cache_key( $license ); |
| 237 |
|
$cache = get_option( $cache_key ); |
| 238 |
|
|
| 239 |
|
if ( empty( $cache ) || empty( $cache['timeout'] ) || current_time( 'timestamp' ) > $cache['timeout'] ) { |
| 240 |
|
return false; // Cache is expired |
| 241 |
|
} |
| 242 |
|
|
| 243 |
|
return json_decode( $cache['value'], true ); |
| 244 |
|
} |