feat: correct cache timing

This commit is contained in:
Kasper Juul Hermansen 2025-02-28 23:41:17 +01:00
parent 0dd768af9d
commit 3510750c55
Signed by: kjuulh
SSH Key Fingerprint: SHA256:RjXh0p7U6opxnfd3ga/Y9TCo18FYlHFdSpRIV72S/QM

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)));