From 150c9edda90ebdfc28eeb9bfe2cc2bba0d46bebd Mon Sep 17 00:00:00 2001 From: perennial Date: Thu, 17 Oct 2024 13:15:57 +1100 Subject: [PATCH] edit comments --- core/requests.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/core/requests.go b/core/requests.go index c2586bb..e485071 100644 --- a/core/requests.go +++ b/core/requests.go @@ -47,7 +47,7 @@ var ( cacheSeed uint64 cache *lru.Cache - // shortTTLPaths lists specific URI paths that require a shorter TTL for their cached responses. + // shortTTLPaths lists URI paths that require a shorter TTL for their cached responses. shortTTLPaths = []string{ "/ajax/discovery/artworks", "/ajax/discovery/novels", @@ -55,7 +55,7 @@ var ( "/ranking.php", } - // excludedCachePaths lists URI path prefixes that should be excluded from caching. + // excludedCachePaths lists API endpoints that should *never* be cached, regardless of any other factors. excludedCachePaths = []string{ "/ranking.php", }