From 1111906661bb10357207d549cd6690e57bd667b0 Mon Sep 17 00:00:00 2001 From: Simon Date: Mon, 21 Sep 2026 15:30:23 +0000 Subject: [PATCH] Tune sxyprn app-client refresh interval to 15 minutes App clients were refreshing (and thus swapping thumbnails) every 30 minutes, already more often than hourly. Lowered the app-client cache TTL to 15 minutes in both fetch paths and matched the channel's advisory cacheDuration. Co-Authored-By: Claude Sonnet 5 Claude-Session: https://claude.ai/code/session_01QTqf6orbHZ9rFFpVpcgzcR --- src/providers/sxyprn.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/providers/sxyprn.rs b/src/providers/sxyprn.rs index e0bdfb4..2738f98 100644 --- a/src/providers/sxyprn.rs +++ b/src/providers/sxyprn.rs @@ -106,7 +106,7 @@ impl SxyprnProvider { }, ], nsfw: true, - cacheDuration: Some(1800), + cacheDuration: Some(900), ytdlpCommand: Some("yt-dlp --impersonate chrome-120".to_string()) } } @@ -155,7 +155,7 @@ impl SxyprnProvider { } else { url_str.clone() }; - let cache_ttl_secs: u64 = if is_app_client { 30 * 60 } else { 60 * 60 }; + let cache_ttl_secs: u64 = if is_app_client { 15 * 60 } else { 60 * 60 }; let old_items = match cache.get(&cache_key) { Some((time, items)) => { @@ -253,7 +253,7 @@ impl SxyprnProvider { } else { url_str.clone() }; - let cache_ttl_secs: u64 = if is_app_client { 30 * 60 } else { 60 * 60 }; + let cache_ttl_secs: u64 = if is_app_client { 15 * 60 } else { 60 * 60 }; // Check our Video Cache. If the result is younger than the TTL, we return it. let old_items = match cache.get(&cache_key) { Some((time, items)) => {