aboutsummaryrefslogtreecommitdiffstats
path: root/conf
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 /conf
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 'conf')
-rw-r--r--conf/general.yml-docker6
-rw-r--r--conf/general.yml-example4
2 files changed, 9 insertions, 1 deletions
diff --git a/conf/general.yml-docker b/conf/general.yml-docker
index 5a447dbee..fb789daf5 100644
--- a/conf/general.yml-docker
+++ b/conf/general.yml-docker
@@ -95,7 +95,7 @@ PHOTO_STORAGE_OPTIONS:
# it doesn't already exist. Requires the appropriate AWS
# permissions.
# REGION: 'eu-west-1' # optional, only used if CREATE_BUCKET is set. Controls
-# which AWS region the S3 bucket will be created in.
+ # which AWS region the S3 bucket will be created in.
# Location of MapIt, to map points to administrative areas, and what types of
# area from it you want to use. If left blank, a default area will be used
@@ -225,6 +225,10 @@ GAZE_URL: 'https://gaze.mysociety.org/gaze'
# This can be safely left out and will default to '127.0.0.1' even if not present.
MEMCACHED_HOST: 'memcached.svc'
+# Cache timeout - integer, optional, default 3600s (1 hour)
+# Used for cache of front page stats/recent list, and /reports max-age.
+CACHE_TIMEOUT: 3600
+
# Should problem reports link to the council summary pages?
AREA_LINKS_FROM_PROBLEMS: '0'
diff --git a/conf/general.yml-example b/conf/general.yml-example
index 11902c0b3..8dd4d0a2f 100644
--- a/conf/general.yml-example
+++ b/conf/general.yml-example
@@ -221,6 +221,10 @@ GAZE_URL: 'https://gaze.mysociety.org/gaze'
# This can be safely left out and will default to '127.0.0.1' even if not present.
MEMCACHED_HOST: '127.0.0.1'
+# Cache timeout - integer, optional, default 3600s (1 hour)
+# Used for cache of front page stats/recent list, and /reports max-age.
+CACHE_TIMEOUT: 3600
+
# Should problem reports link to the council summary pages?
AREA_LINKS_FROM_PROBLEMS: '0'