diff --git a/src/routes/agreements.rs b/src/routes/agreements.rs index 1aaca6d..857dd0e 100644 --- a/src/routes/agreements.rs +++ b/src/routes/agreements.rs @@ -63,7 +63,7 @@ async fn robots() -> impl Responder { HttpResponse::Ok().body(build_robotstxt()) } -#[once(time = 60)] +#[once] fn build_robotstxt() -> String { "User-agent: * Allow: /".into() } diff --git a/src/routes/blog.rs b/src/routes/blog.rs index f5e26c4..c16ff18 100644 --- a/src/routes/blog.rs +++ b/src/routes/blog.rs @@ -43,7 +43,7 @@ struct BlogIndexTemplate { no_posts: bool, } -#[once(time = 120)] +#[once(time = 60)] fn build_index(config: Config, url: String) -> String { let mut posts = get_posts("data/blog"); diff --git a/src/routes/web3.rs b/src/routes/web3.rs index 0c8ccc8..6d9cb0b 100644 --- a/src/routes/web3.rs +++ b/src/routes/web3.rs @@ -11,7 +11,7 @@ async fn page(req: HttpRequest, config: web::Data) -> impl Responder { )) } -#[once(time = 60)] +#[once] fn build_page(config: Config, url: String) -> String { config.tmpl.render( "web3.html",