aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorsaturneric <[email protected]>2025-11-24 11:21:01 +0000
committersaturneric <[email protected]>2025-11-24 11:21:01 +0000
commit94453b71f541c90369d46632f00a9bdf969a91dc (patch)
tree2889f1127c7700be3af68d23aad50e69763e1c27
parentdocs(readme): update features for dark mode and typography (diff)
downloadcgit-94453b71f541c90369d46632f00a9bdf969a91dc.tar.gz
cgit-94453b71f541c90369d46632f00a9bdf969a91dc.zip
perf(config): increase cache size and TTL valuesHEADmaster
* Raise cache entry limit to `9999` to improve response performance * Extend TTLs for root, repo, and dynamic pages to reduce cache invalidation frequency and lower backend load * Supports better scalability for high-traffic environments
-rw-r--r--cgitrc10
1 files changed, 5 insertions, 5 deletions
diff --git a/cgitrc b/cgitrc
index 6f77877..702fe23 100644
--- a/cgitrc
+++ b/cgitrc
@@ -3,17 +3,17 @@
# reference: https://linux.die.net/man/5/cgitrc
#
#
-# Enable caching of up to 1000 output entries
-cache-size=1000
+# Enable caching of up to X output entries
+cache-size=9999
## ttl for root page
-cache-root-ttl=5
+cache-root-ttl=120
## ttl for repo summary page
-cache-repo-ttl=5
+cache-repo-ttl=120
## ttl for other dynamic pages
-cache-dynamic-ttl=5
+cache-dynamic-ttl=240
## ttl for static pages (addressed by SHA-1)
cache-static-ttl=-1