Skip to content

Commit

Permalink
Disable Cache Temporarily and Bump Version
Browse files Browse the repository at this point in the history
  • Loading branch information
harrysolovay committed Sep 12, 2024
1 parent 6b5f437 commit e55e20b
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 10 deletions.
2 changes: 1 addition & 1 deletion server/Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion server/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "mina-ocv-server"
version = "0.6.0"
version = "0.7.0"
edition = "2021"

[dependencies]
Expand Down
10 changes: 3 additions & 7 deletions server/src/database/cache.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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(),
}
}
}
2 changes: 1 addition & 1 deletion web/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "mina-ocv-web",
"version": "0.6.0",
"version": "0.7.0",
"private": true,
"engines": {
"node": ">=18.0.0",
Expand Down

0 comments on commit e55e20b

Please sign in to comment.