PluginProbe
Automatic YouTube Gallery – Embed Auto-Updating YouTube Video Galleries, Feeds, Playlists & Channels / 2.3.8
Automatic YouTube Gallery – Embed Auto-Updating YouTube Video Galleries, Feeds, Playlists & Channels v2.3.8
2.9.1 2.9.0 trunk 1.0.0 1.1.0 1.2.0 1.3.0 1.4.0 1.5.0 1.6.0 1.6.1 1.6.2 1.6.3 1.6.4 1.6.5 2.0.0 2.1.0 2.2.0 2.3.2 2.3.3 2.3.5 2.3.6 2.3.8 2.3.9 2.4.3 All 37 releases
← All changes | freemius/includes/class-fs-api.php +2 -5 2.4.32.3.8 View file →
@@ -317,14 +317,11 @@
317 317 if ( WP_FS__DEV_MODE || $this->_api->IsSandbox() ) {
318 318 $flush = true;
319 319 }
320 320
321 - $has_valid_cache = self::$_cache->has_valid( $cache_key, $expiration );
322 - $cached_result = $has_valid_cache ?
323 - self::$_cache->get( $cache_key ) :
324 - null;
321 + $cached_result = self::$_cache->get( $cache_key );
325 322
326 - if ( $flush || is_null( $cached_result ) ) {
323 + if ( $flush || ! self::$_cache->has_valid( $cache_key, $expiration ) ) {
327 324 $result = $this->call( $path );
328 325
329 326 if ( ! is_object( $result ) || isset( $result->error ) ) {
330 327 // Api returned an error.