edit comments

This commit is contained in:
perennial
2024-10-17 13:15:57 +11:00
parent fd7914bc2d
commit 150c9edda9
+2 -2
View File
@@ -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",
}