]> git.lizzy.rs Git - go-anidb.git/blobdiff - misc.go
anime: Make cached Anime expire earlier if they're Incomplete
[go-anidb.git] / misc.go
diff --git a/misc.go b/misc.go
index 8cab28f1328c238ee6581e4bea9aae4e4d0ec6a3..ad8c51740516d52359c3f5e949288528dd7bcdeb 100644 (file)
--- a/misc.go
+++ b/misc.go
@@ -15,6 +15,9 @@ var (
        GroupCacheDuration   = 4 * DefaultCacheDuration // They don't change that often.
        FileCacheDuration    = 8 * DefaultCacheDuration // These change even less often.
 
+       // Used when the UDP API Anime query fails, but the HTTP API query succeeds.
+       AnimeIncompleteCacheDuration = 24 * time.Hour
+
        // Used when there's some data missing on a file.
        // Usually happens because the AVDump data hasn't been merged with the database
        // yet, which is done on a daily cron job.