aboutsummaryrefslogtreecommitdiffstats
path: root/docs/customising
diff options
context:
space:
mode:
authorMatthew Somerville <matthew-github@dracos.co.uk>2019-02-04 14:18:40 +0000
committerMatthew Somerville <matthew-github@dracos.co.uk>2019-02-04 14:21:02 +0000
commit265fe86bc5028d48442c994decc2fca22de473be (patch)
tree75c527577b36291a82398e86178811631d2877cc /docs/customising
parent47befd5dcbb3fefc6c4d99b65ee125275c3d8509 (diff)
Make front page cache time configurable.
Add a configuration variable to use for the front page stats/ recent list, plus the max-age of `/reports`.
Diffstat (limited to 'docs/customising')
-rw-r--r--docs/customising/config.md9
1 files changed, 9 insertions, 0 deletions
diff --git a/docs/customising/config.md b/docs/customising/config.md
index f9b2fc213..d83e00472 100644
--- a/docs/customising/config.md
+++ b/docs/customising/config.md
@@ -50,6 +50,7 @@ The following are all the configuration settings that you can change in `conf/ge
* <code><a href="#open311_limit">OPEN311_LIMIT</a></code>
* <code><a href="#all_reports_per_page">ALL_REPORTS_PER_PAGE</a></code>
* <code><a href="#area_links_from_problems">AREA_LINKS_FROM_PROBLEMS</a></code>
+* <code><a href="#cache_timeout">CACHE_TIMEOUT</a></code>
### URLs and directories
@@ -1091,6 +1092,14 @@ ALLOWED_COBRANDS:
</dd>
<dt>
+ <a name="cache_timeout"><code>CACHE_TIMEOUT</code></a>
+ </dt>
+ <dd>
+ The time, in seconds, that the front page stats/recent list should be cached for.
+ Also used for the max-age of <code>/reports</code>. Defaults to 3600s (1 hour).
+ </dd>
+
+ <dt>
<a name="gaze_url"><code>GAZE_URL</code></a>
</dt>
<dd>