From 3510750c551b04dfe114a258435f6e705aa7e962 Mon Sep 17 00:00:00 2001 From: kjuulh Date: Fri, 28 Feb 2025 23:41:17 +0100 Subject: [PATCH] feat: correct cache timing --- crates/forest/src/plan_reconciler/cache.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/crates/forest/src/plan_reconciler/cache.rs b/crates/forest/src/plan_reconciler/cache.rs index cc723ae..a0effc3 100644 --- a/crates/forest/src/plan_reconciler/cache.rs +++ b/crates/forest/src/plan_reconciler/cache.rs @@ -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)));