aboutsummaryrefslogtreecommitdiff
path: root/server/src/config.rs
diff options
context:
space:
mode:
authormetamuffin <metamuffin@disroot.org>2025-11-30 12:32:44 +0100
committermetamuffin <metamuffin@disroot.org>2025-11-30 12:32:44 +0100
commit8174d129fbabd2d39323678d11d868893ddb429a (patch)
tree7979a528114cd5fb827f748f678a916e8e8eeddc /server/src/config.rs
parent5db15c323d76dca9ae71b0204d63dcb09fbbcbc5 (diff)
downloadjellything-8174d129fbabd2d39323678d11d868893ddb429a.tar
jellything-8174d129fbabd2d39323678d11d868893ddb429a.tar.bz2
jellything-8174d129fbabd2d39323678d11d868893ddb429a.tar.zst
new sync cache
Diffstat (limited to 'server/src/config.rs')
-rw-r--r--server/src/config.rs2
1 files changed, 2 insertions, 0 deletions
diff --git a/server/src/config.rs b/server/src/config.rs
index b663c78..bcb3de6 100644
--- a/server/src/config.rs
+++ b/server/src/config.rs
@@ -5,6 +5,7 @@
*/
use anyhow::{anyhow, Context, Result};
+use jellycache::init_cache;
use jellylogic::init_database;
use serde::Deserialize;
use std::env::{args, var};
@@ -40,6 +41,7 @@ pub async fn load_config() -> Result<()> {
*crate::CONF_PRELOAD.lock().unwrap() = Some(config.server);
*jellyui::CONF_PRELOAD.lock().unwrap() = Some(config.ui);
+ init_cache()?;
init_database()?;
Ok(())