blog: add more comment on cache version

This commit is contained in:
Peter Cai 2020-04-09 17:16:04 +08:00
parent 8ba086a9ec
commit 2bd9b169f3
No known key found for this signature in database
GPG Key ID: 71F5FB4E4F3FD54F
1 changed files with 5 additions and 0 deletions

View File

@ -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