diff --git a/src/pgd.rs b/src/pgd.rs index 41f10fe..4838a9e 100644 --- a/src/pgd.rs +++ b/src/pgd.rs @@ -18,7 +18,11 @@ fn main_with_cache(request: &str, regen: bool) -> Result<()> { let (cache, just_generated) = match Cache::read() { Ok(c) => (c, false), - Err(_) => (Cache::generate(), true), + Err(_) => { + let cache = Cache::generate(); + cache.write()?; + (cache, true) + }, }; let only_match = match cache.find_interactive(&request) {