readd cache
This commit is contained in:
parent
6e06837dfd
commit
37ba6bf09d
1 changed files with 1 additions and 0 deletions
|
@ -12,6 +12,7 @@ pub async fn page(config: web::Data<Config>) -> impl Responder {
|
||||||
#[derive(Content)]
|
#[derive(Content)]
|
||||||
struct Web3Template {}
|
struct Web3Template {}
|
||||||
|
|
||||||
|
#[once(time = 60)]
|
||||||
pub fn get_page(config: Config) -> String {
|
pub fn get_page(config: Config) -> String {
|
||||||
config.tmpl.render(
|
config.tmpl.render(
|
||||||
"web3.html",
|
"web3.html",
|
||||||
|
|
Loading…
Reference in a new issue