mirror of
https://codeberg.org/VnPower/PixivFE
synced 2024-12-06 19:16:23 +01:00
edit comments
This commit is contained in:
+2
-2
@@ -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",
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user