diff options
author | Jason A. Donenfeld | 2013-05-28 16:33:30 +0200 |
---|---|---|
committer | Jason A. Donenfeld | 2013-08-12 13:14:10 -0600 |
commit | 61ff10065b579fa38182fcf10cc7e63839acd53c (patch) | |
tree | 0d4b37af5a034c10763f7d0f1c39af55fabed115 /cgitrc.5.txt | |
parent | 23debef62104c70600be2b745ec3957538eeac6e (diff) | |
download | cgit-61ff10065b579fa38182fcf10cc7e63839acd53c.tar.gz cgit-61ff10065b579fa38182fcf10cc7e63839acd53c.tar.bz2 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 'cgitrc.5.txt')
-rw-r--r-- | cgitrc.5.txt | 28 |
1 files changed, 18 insertions, 10 deletions
diff --git a/cgitrc.5.txt b/cgitrc.5.txt index b4603ef..9d0c089 100644 --- a/cgitrc.5.txt +++ b/cgitrc.5.txt | |||
@@ -50,32 +50,40 @@ cache-root:: | |||
50 | Path used to store the cgit cache entries. Default value: | 50 | Path used to store the cgit cache entries. Default value: |
51 | "/var/cache/cgit". See also: "MACRO EXPANSION". | 51 | "/var/cache/cgit". See also: "MACRO EXPANSION". |
52 | 52 | ||
53 | cache-static-ttl:: | ||
54 | Number which specifies the time-to-live, in minutes, for the cached | ||
55 | version of repository pages accessed with a fixed SHA1. Negative | ||
56 | values have infinite ttl. Default value: -1". | ||
57 | |||
53 | cache-dynamic-ttl:: | 58 | cache-dynamic-ttl:: |
54 | Number which specifies the time-to-live, in minutes, for the cached | 59 | Number which specifies the time-to-live, in minutes, for the cached |
55 | version of repository pages accessed without a fixed SHA1. Default | 60 | version of repository pages accessed without a fixed SHA1. Negative |
56 | value: "5". | 61 | values have infinite ttl. Default value: "5". |
57 | 62 | ||
58 | cache-repo-ttl:: | 63 | cache-repo-ttl:: |
59 | Number which specifies the time-to-live, in minutes, for the cached | 64 | Number which specifies the time-to-live, in minutes, for the cached |
60 | version of the repository summary page. Default value: "5". | 65 | version of the repository summary page. Negative values have infinite |
66 | ttl. Default value: "5". | ||
61 | 67 | ||
62 | cache-root-ttl:: | 68 | cache-root-ttl:: |
63 | Number which specifies the time-to-live, in minutes, for the cached | 69 | Number which specifies the time-to-live, in minutes, for the cached |
64 | version of the repository index page. Default value: "5". | 70 | version of the repository index page. Negative values have infinite |
71 | ttl. Default value: "5". | ||
65 | 72 | ||
66 | cache-scanrc-ttl:: | 73 | cache-scanrc-ttl:: |
67 | Number which specifies the time-to-live, in minutes, for the result | 74 | Number which specifies the time-to-live, in minutes, for the result |
68 | of scanning a path for git repositories. Default value: "15". | 75 | of scanning a path for git repositories. Negative values have infinite |
76 | ttl. Default value: "15". | ||
77 | |||
78 | cache-about-ttl:: | ||
79 | Number which specifies the time-to-live, in minutes, for the cached | ||
80 | version of the repository about page. Negative values have infinite | ||
81 | ttl. Default value: "15". | ||
69 | 82 | ||
70 | cache-size:: | 83 | cache-size:: |
71 | The maximum number of entries in the cgit cache. Default value: "0" | 84 | The maximum number of entries in the cgit cache. Default value: "0" |
72 | (i.e. caching is disabled). | 85 | (i.e. caching is disabled). |
73 | 86 | ||
74 | cache-static-ttl:: | ||
75 | Number which specifies the time-to-live, in minutes, for the cached | ||
76 | version of repository pages accessed with a fixed SHA1. Default value: | ||
77 | "5". | ||
78 | |||
79 | case-sensitive-sort:: | 87 | case-sensitive-sort:: |
80 | Sort items in the repo list case sensitively. Default value: "1". | 88 | Sort items in the repo list case sensitively. Default value: "1". |
81 | See also: repository-sort, section-sort. | 89 | See also: repository-sort, section-sort. |