mirror of
https://github.com/lampame/lampac-ukraine.git
synced 2026-06-17 12:08:54 +00:00
chore(uaflix): invalidate cached season structures
Bump the season structure cache key to v3 so stale entries that may include premiere episodes are not reused.
This commit is contained in:
parent
b6c9c748cd
commit
0189cb929c
@ -1141,8 +1141,8 @@ namespace LME.Uaflix
|
|||||||
if (season < 0)
|
if (season < 0)
|
||||||
return null;
|
return null;
|
||||||
|
|
||||||
// v2 — зміна кеш-ключа для інвалідації старих структур без multi-voice
|
// v3 — інвалідація старих структур, що містили прем'єрні серії
|
||||||
string memKey = $"lme_uaflix:season-structure-v2:{serialUrl}:{season}";
|
string memKey = $"lme_uaflix:season-structure-v3:{serialUrl}:{season}";
|
||||||
if (_hybridCache.TryGetValue(memKey, out SerialAggregatedStructure cached))
|
if (_hybridCache.TryGetValue(memKey, out SerialAggregatedStructure cached))
|
||||||
{
|
{
|
||||||
_onLog($"GetSeasonStructure: Using cached structure for season={season}, url={serialUrl}");
|
_onLog($"GetSeasonStructure: Using cached structure for season={season}, url={serialUrl}");
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user