From 01bc3ae4aed8737608d9b2397eb7dff3b39d2a6c Mon Sep 17 00:00:00 2001 From: slonkazoid Date: Sun, 29 Dec 2024 20:01:25 +0300 Subject: [PATCH] apply cache tll properly and slightly change date rendering --- src/post/cache.rs | 8 +++++++- static/date.js | 3 ++- 2 files changed, 9 insertions(+), 2 deletions(-) diff --git a/src/post/cache.rs b/src/post/cache.rs index 36ffcab..d4ee5b7 100644 --- a/src/post/cache.rs +++ b/src/post/cache.rs @@ -33,6 +33,7 @@ pub struct CacheValue { pub struct Cache { map: HashMap, version: u16, + #[serde(skip)] ttl: Option, } @@ -278,5 +279,10 @@ pub(crate) async fn load_cache(config: &CacheConfig) -> Result