From a2007feb339769cb8913c2e68001c82658b1ddee Mon Sep 17 00:00:00 2001 From: Ziedelth Date: Tue, 13 Feb 2024 16:05:31 +0100 Subject: [PATCH] Invalidate episode after FetchOldEpisodeDescriptionJob.kt --- .../fr/shikkanime/jobs/FetchOldEpisodeDescriptionJob.kt | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/main/kotlin/fr/shikkanime/jobs/FetchOldEpisodeDescriptionJob.kt b/src/main/kotlin/fr/shikkanime/jobs/FetchOldEpisodeDescriptionJob.kt index f854fae5..12ea0d86 100644 --- a/src/main/kotlin/fr/shikkanime/jobs/FetchOldEpisodeDescriptionJob.kt +++ b/src/main/kotlin/fr/shikkanime/jobs/FetchOldEpisodeDescriptionJob.kt @@ -10,6 +10,7 @@ import fr.shikkanime.services.EpisodeService import fr.shikkanime.services.caches.ConfigCacheService import fr.shikkanime.utils.HttpRequest import fr.shikkanime.utils.LoggerFactory +import fr.shikkanime.utils.MapCache import fr.shikkanime.utils.ObjectParser.getAsInt import fr.shikkanime.utils.ObjectParser.getAsString import fr.shikkanime.wrappers.AnimationDigitalNetworkWrapper @@ -57,6 +58,10 @@ class FetchOldEpisodeDescriptionJob : AbstractJob() { } } + if (episodes.isNotEmpty()) { + MapCache.invalidate(Episode::class.java) + } + httpRequest.close() }