From 361207c40cdc5d49a7d93b58df930ac64b454cff Mon Sep 17 00:00:00 2001 From: Paolo Barbolini Date: Wed, 21 Dec 2022 10:29:15 +0100 Subject: [PATCH] Tweak cache durations (#183) --- src/engine/mod.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/engine/mod.rs b/src/engine/mod.rs index 89399ec..2603ab3 100644 --- a/src/engine/mod.rs +++ b/src/engine/mod.rs @@ -56,20 +56,20 @@ impl Engine { ); let get_popular_crates = Cache::new( GetPopularCrates::new(client.clone()), - Duration::from_secs(120), + Duration::from_secs(15 * 60), 1, logger.clone(), ); let get_popular_repos = Cache::new( GetPopularRepos::new(client.clone()), - Duration::from_secs(120), + Duration::from_secs(5 * 60), 1, logger.clone(), ); let retrieve_file_at_path = RetrieveFileAtPath::new(client.clone()); let fetch_advisory_db = Cache::new( FetchAdvisoryDatabase::new(client), - Duration::from_secs(1800), + Duration::from_secs(30 * 60), 1, logger, );