From ee9c5fbdd1f09d9de7c45fac0f0273330bcf993c Mon Sep 17 00:00:00 2001 From: Mylloon Date: Wed, 26 Apr 2023 16:22:54 +0200 Subject: [PATCH] cache for rss --- src/routes/blog.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/routes/blog.rs b/src/routes/blog.rs index 28faf00..cb14c52 100644 --- a/src/routes/blog.rs +++ b/src/routes/blog.rs @@ -181,7 +181,7 @@ pub async fn rss(req: HttpRequest, config: web::Data) -> impl Responder )) } -//#[once(time = 10800)] // 3h +#[once(time = 10800)] // 3h fn build_rss(config: Config, info: ConnectionInfo) -> String { let mut posts = get_posts("data/blog");