From e55e20b78c265547673e2612790d3c325e82c2b4 Mon Sep 17 00:00:00 2001 From: Harry Solovay Date: Thu, 12 Sep 2024 15:09:26 -0400 Subject: [PATCH] Disable Cache Temporarily and Bump Version --- server/Cargo.lock | 2 +- server/Cargo.toml | 2 +- server/src/database/cache.rs | 10 +++------- web/package.json | 2 +- 4 files changed, 6 insertions(+), 10 deletions(-) diff --git a/server/Cargo.lock b/server/Cargo.lock index ace03108..3ce44432 100644 --- a/server/Cargo.lock +++ b/server/Cargo.lock @@ -1030,7 +1030,7 @@ checksum = "6877bb514081ee2a7ff5ef9de3281f14a4dd4bceac4c09388074a6b5df8a139a" [[package]] name = "mina-ocv-server" -version = "0.6.0" +version = "0.7.0" dependencies = [ "anyhow", "axum", diff --git a/server/Cargo.toml b/server/Cargo.toml index e8ec1cda..d7a204a7 100644 --- a/server/Cargo.toml +++ b/server/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "mina-ocv-server" -version = "0.6.0" +version = "0.7.0" edition = "2021" [dependencies] diff --git a/server/src/database/cache.rs b/server/src/database/cache.rs index 31313ee4..21f8c3b3 100644 --- a/server/src/database/cache.rs +++ b/server/src/database/cache.rs @@ -22,15 +22,11 @@ pub(crate) struct CacheManager { impl CacheManager { pub(crate) fn build() -> CacheManager { CacheManager { - votes: VotesCache::builder() - .time_to_live(std::time::Duration::from_secs(60 * 5)) - .build(), + votes: VotesCache::builder().time_to_live(std::time::Duration::ZERO).build(), votes_weighted: VotesWeightedCache::builder() - .time_to_live(std::time::Duration::from_secs(60 * 5)) - .build(), - ledger: LedgerCache::builder() - .time_to_live(std::time::Duration::from_secs(60 * 60 * 12)) + .time_to_live(std::time::Duration::ZERO) .build(), + ledger: LedgerCache::builder().time_to_live(std::time::Duration::ZERO).build(), } } } diff --git a/web/package.json b/web/package.json index 1ed5d9f7..d219a852 100644 --- a/web/package.json +++ b/web/package.json @@ -1,6 +1,6 @@ { "name": "mina-ocv-web", - "version": "0.6.0", + "version": "0.7.0", "private": true, "engines": { "node": ">=18.0.0",