diff options
| author | saturneric <[email protected]> | 2025-11-24 11:21:01 +0000 |
|---|---|---|
| committer | saturneric <[email protected]> | 2025-11-24 11:21:01 +0000 |
| commit | 94453b71f541c90369d46632f00a9bdf969a91dc (patch) | |
| tree | 2889f1127c7700be3af68d23aad50e69763e1c27 | |
| parent | docs(readme): update features for dark mode and typography (diff) | |
| download | cgit-94453b71f541c90369d46632f00a9bdf969a91dc.tar.gz cgit-94453b71f541c90369d46632f00a9bdf969a91dc.zip | |
* 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-- | cgitrc | 10 |
1 files changed, 5 insertions, 5 deletions
@@ -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 |
