From 5ccf670248eb0d234c2bc9ca1e3baa852a3230c9 Mon Sep 17 00:00:00 2001 From: Florian Dieminger Date: Tue, 10 Dec 2024 09:44:46 +0100 Subject: [PATCH] fix(serve): don't cache by default --- crates/rari-cli/main.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/crates/rari-cli/main.rs b/crates/rari-cli/main.rs index af1a6b2b..f4b661e4 100644 --- a/crates/rari-cli/main.rs +++ b/crates/rari-cli/main.rs @@ -140,8 +140,8 @@ struct UpdateArgs { #[derive(Args)] struct ServeArgs { - #[arg(short, long)] - no_cache: bool, + #[arg(long, help = "Caution! Don't use when editing content.")] + cache: bool, } #[derive(Args)] @@ -399,7 +399,7 @@ fn main() -> Result<(), Error> { } Commands::Serve(args) => { let mut settings = Settings::new()?; - settings.cache_content = !args.no_cache; + settings.cache_content = args.cache; settings.data_issues = true; let _ = SETTINGS.set(settings); serve::serve(memory_layer.clone())?