adjust cache
This commit is contained in:
parent
a37a5ccaf4
commit
19136f6c81
3 changed files with 3 additions and 3 deletions
|
@ -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()
|
||||
}
|
||||
|
|
|
@ -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");
|
||||
|
||||
|
|
|
@ -11,7 +11,7 @@ async fn page(req: HttpRequest, config: web::Data<Config>) -> impl Responder {
|
|||
))
|
||||
}
|
||||
|
||||
#[once(time = 60)]
|
||||
#[once]
|
||||
fn build_page(config: Config, url: String) -> String {
|
||||
config.tmpl.render(
|
||||
"web3.html",
|
||||
|
|
Loading…
Reference in a new issue