about summary refs log tree commit diff stats
path: root/cgit.h
diff options
context:
space:
mode:
authorJason A. Donenfeld2013-05-28 16:33:30 +0200
committerJason A. Donenfeld2013-08-12 13:14:10 -0600
commit61ff10065b579fa38182fcf10cc7e63839acd53c (patch)
tree0d4b37af5a034c10763f7d0f1c39af55fabed115 /cgit.h
parentrobots.txt: disallow access to snapshots (diff)
downloadcgit-61ff10065b579fa38182fcf10cc7e63839acd53c.tar.gz
cgit-61ff10065b579fa38182fcf10cc7e63839acd53c.zip
cache: document negative ttls and add about ttl
We've long supported negative ttls, for infinite cache, except the
documentation incorrectly showed one of our defaults as being 5 and not
-1. As well, with a negative ttl, we were actually making the HTTP
expired header go backwards. This changes it to go ahead ten years
instead.

Further, we add an cache-about-ttl option to set a different ttl for
about pages, which are now increasingly being filtered through markdown
or just sent statically anyway.

Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
Diffstat (limited to 'cgit.h')
-rw-r--r--cgit.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/cgit.h b/cgit.h index f28cf30..a474d77 100644 --- a/cgit.h +++ b/cgit.h
@@ -200,6 +200,7 @@ struct cgit_config {
200 int cache_root_ttl; 200 int cache_root_ttl;
201 int cache_scanrc_ttl; 201 int cache_scanrc_ttl;
202 int cache_static_ttl; 202 int cache_static_ttl;
203 int cache_about_ttl;
203 int case_sensitive_sort; 204 int case_sensitive_sort;
204 int embedded; 205 int embedded;
205 int enable_filter_overrides; 206 int enable_filter_overrides;