Skip to content

Commit 6d5268d

Browse files
committed
ka
1 parent 7a6f126 commit 6d5268d

File tree

3 files changed

+25
-4
lines changed

3 files changed

+25
-4
lines changed

advanced-responsive-video-embedder.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
namespace Nextgenthemes\ARVE;
2424

2525
const VERSION = '10.6.4';
26-
const PRO_VERSION_REQUIRED = '7.0.0-beta2';
26+
const PRO_VERSION_REQUIRED = '7.0.2';
2727
const NUM_TRACKS = 3;
2828
const PLUGIN_FILE = __FILE__;
2929
const PLUGIN_DIR = __DIR__;

changelog.md

+4
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,10 @@
33
* [ARVE Pro changelog](https://nextgenthemes.com/plugins/arve-pro/#changelog)
44
* [ARVE Random Videos changelog](https://nextgenthemes.com/plugins/arve-random-video/#changelog)
55

6+
### 2025-03-09 10.6.5 ###
7+
8+
* Fix: Cache management related old YouTube video having broken thumbnails.
9+
610
### 2025-03-09 10.6.4 ###
711

812
* Fix: Link to settings page in API key notice.

php/fn-oembed.php

+20-3
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ function filter_oembed_dataparse( string $html, object $data, string $url ): str
4242
$data->arve_cachetime = current_datetime()->format( DATETIME::ATOM );
4343

4444
if ( function_exists( __NAMESPACE__ . '\Pro\oembed_data' ) ) {
45-
$data = Pro\oembed_data( $data );
45+
Pro\oembed_data( $data );
4646
}
4747

4848
unset( $data->html );
@@ -55,7 +55,6 @@ function filter_oembed_dataparse( string $html, object $data, string $url ): str
5555
return $html;
5656
}
5757

58-
5958
/**
6059
* Sanitizes the provider name by removing special characters and converting to lowercase.
6160
*
@@ -110,13 +109,31 @@ function delete_oembed_caches_when_missing_data( object $oembed_data ): array {
110109
$cachetime = $oembed_data->arve_cachetime ?? false;
111110
$old_enough = $cachetime && ( new DateTime( $cachetime ) )->modify( '+ 1 day' ) <= current_datetime();
112111

112+
if ( ! $url ) {
113+
$result['delete_entire_oembed_cache'] = delete_oembed_cache();
114+
}
115+
116+
if ( $url
117+
&& ( ! $provider || ! $cachetime )
118+
) {
119+
$result['delete_oembed_cache_for_provider_or_cachetime'] = delete_oembed_cache( $url );
120+
}
121+
122+
if ( $pro_active
123+
&& $url
124+
&& 'youtube' === $provider
125+
&& ! isset( $oembed_data->thumbnail_srcset )
126+
) {
127+
$result['delete_youtube_cache_for_srcset'] = delete_oembed_cache( $url );
128+
}
129+
113130
if ( $pro_active
114131
&& $url
115132
&& 'youtube' === $provider
116133
&& ! isset( $oembed_data->description )
117134
&& $old_enough
118135
) {
119-
$result['delete_youtube_cache'] = delete_oembed_cache( $url );
136+
$result['delete_youtube_cache_for_description'] = delete_oembed_cache( $url );
120137
}
121138

122139
return $result;

0 commit comments

Comments
 (0)