feat: correct cache timing

This commit is contained in:
2025-02-28 23:41:17 +01:00
parent 0dd768af9d
commit 3510750c55

View File

@@ -40,7 +40,7 @@ impl Cache {
let cache_expire = now
.as_secs()
.saturating_sub(std::time::Duration::from_secs(60 * 60 * 8).as_secs());
.saturating_sub(std::time::Duration::from_secs(60 * 60).as_secs()); // cache lasts an hour
if unix_cache.as_secs() > cache_expire {
return Ok(Some(unix_cache.as_secs().saturating_sub(cache_expire)));