Skip to content

Commit

Permalink
fix(serve): don't cache by default
Browse files Browse the repository at this point in the history
  • Loading branch information
fiji-flo committed Dec 10, 2024
1 parent e63ca6b commit 5ccf670
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions crates/rari-cli/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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)]
Expand Down Expand Up @@ -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())?
Expand Down

0 comments on commit 5ccf670

Please sign in to comment.