From 47397a43e274987beb4d70ddeb4f5fb4f83ebeba Mon Sep 17 00:00:00 2001 From: Fuwn Date: Sun, 17 Apr 2022 13:23:57 -0700 Subject: feat: cache static pages --- src/route.rs | 1 - 1 file changed, 1 deletion(-) (limited to 'src/route.rs') diff --git a/src/route.rs b/src/route.rs index 2da2cbb..dce4145 100644 --- a/src/route.rs +++ b/src/route.rs @@ -57,7 +57,6 @@ pub fn track_mount( router.mount(route, handler); } -#[allow(unused)] pub fn cache(context: &windmark::returnable::RouteContext<'_>, response: &str) { static LAST_CACHED: SyncLazy> = SyncLazy::new(|| Mutex::new(Instant::now())); -- cgit v1.2.3