aboutsummaryrefslogtreecommitdiff
path: root/cache.go
diff options
context:
space:
mode:
authorRunxi Yu <me@runxiyu.org>2025-03-25 02:40:58 +0800
committerRunxi Yu <me@runxiyu.org>2025-03-25 02:40:58 +0800
commit677a0b051f025992b74fe01ebd282df9fe4dd2ee (patch)
tree1cba347fee6e932185c72c21cf8ed7c720abdafa /cache.go
parentCache commit logs on the repo index page (diff)
downloadforge-677a0b051f025992b74fe01ebd282df9fe4dd2ee.tar.gz
forge-677a0b051f025992b74fe01ebd282df9fe4dd2ee.tar.zst
forge-677a0b051f025992b74fe01ebd282df9fe4dd2ee.zip
Cache dir view in tree view
Diffstat (limited to 'cache.go')
-rw-r--r--cache.go1
1 files changed, 1 insertions, 0 deletions
diff --git a/cache.go b/cache.go
index 72c6458..8f9781b 100644
--- a/cache.go
+++ b/cache.go
@@ -16,6 +16,7 @@ type treeReadmeCacheEntry struct {
ReadmeRendered template.HTML
}
+// key = commit hash + path
var treeReadmeCache *ristretto.Cache[[]byte, treeReadmeCacheEntry]
func init() {