From 2bd9b169f39df02991bb80697558fb8ded4ac731 Mon Sep 17 00:00:00 2001 From: Peter Cai Date: Thu, 9 Apr 2020 17:16:04 +0800 Subject: [PATCH] blog: add more comment on cache version --- src/blog.rs | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/blog.rs b/src/blog.rs index 58834c5..e46c19a 100644 --- a/src/blog.rs +++ b/src/blog.rs @@ -115,6 +115,11 @@ impl Post { } } +// This should be bumped each time the parsing / compiling +// logic of Markdown changes, and each time the Markdown +// library updates. Updaing this value invalidates all +// existing cache and they will be recompiled when someone +// visits. const CACHE_VERSION: &'static str = "0001"; // Cached version of rendered blog content HTMLs