]> git.lizzy.rs Git - go-anidb.git/blobdiff - misc.go
anidb: Cache finished anime for longer
[go-anidb.git] / misc.go
diff --git a/misc.go b/misc.go
index 22a010c1d2b7412a92dec55c19702b16bd778ecd..b6d9db828c46e977d8ff0954b393f30fd6672275 100644 (file)
--- a/misc.go
+++ b/misc.go
@@ -15,6 +15,10 @@ var (
        GroupCacheDuration   = 4 * DefaultCacheDuration // They don't change that often.
        FileCacheDuration    = 8 * DefaultCacheDuration // These change even less often.
 
+       // Used for anime that have already finished airing.
+       // It's unlikely that they get any important updates.
+       FinishedAnimeCacheDuration = 4 * AnimeCacheDuration
+
        // Used when a request uses a non-existing key (AID, ed2k+size, etc)
        InvalidKeyCacheDuration = 1 * time.Hour