Skip to content

Commit

Permalink
Merge pull request #182 from Shikkanime/dev
Browse files Browse the repository at this point in the history
Invalidate episode after FetchOldEpisodeDescriptionJob.kt
  • Loading branch information
Ziedelth authored Feb 13, 2024
2 parents 74ea7fa + a2007fe commit ee56a2a
Showing 1 changed file with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -57,6 +58,10 @@ class FetchOldEpisodeDescriptionJob : AbstractJob() {
}
}

if (episodes.isNotEmpty()) {
MapCache.invalidate(Episode::class.java)
}

httpRequest.close()
}

Expand Down

0 comments on commit ee56a2a

Please sign in to comment.