Ori.livneh has submitted this change and it was merged.

Change subject: graphite-web: set DEFAULT_CACHE_DURATION to 120s
......................................................................


graphite-web: set DEFAULT_CACHE_DURATION to 120s

Make graphite-web cache images and data for two minutes. The default behavior
is to cache for one minute. This matches the old setup on professor, which
served us well.

This change should be followed-up with a patch configuring mod_expires to set
Cache-Control/Last-Modified/Expires.

Change-Id: I863928efeb0475273e1dbff6c34ad779ee9e2933
---
M modules/graphite/templates/local_settings.py.erb
1 file changed, 1 insertion(+), 0 deletions(-)

Approvals:
  Ori.livneh: Verified; Looks good to me, approved



diff --git a/modules/graphite/templates/local_settings.py.erb 
b/modules/graphite/templates/local_settings.py.erb
index fcf8412..f22ad88 100644
--- a/modules/graphite/templates/local_settings.py.erb
+++ b/modules/graphite/templates/local_settings.py.erb
@@ -14,6 +14,7 @@
 TIME_ZONE = 'Etc/UTC'
 SECRET_KEY = '<%= @secret_key %>'
 DOCUMENTATION_URL = '<%= @documentation_url %>'
+DEFAULT_CACHE_DURATION = 120
 
 
 ## Logging

-- 
To view, visit https://gerrit.wikimedia.org/r/107634
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings

Gerrit-MessageType: merged
Gerrit-Change-Id: I863928efeb0475273e1dbff6c34ad779ee9e2933
Gerrit-PatchSet: 1
Gerrit-Project: operations/puppet
Gerrit-Branch: production
Gerrit-Owner: Ori.livneh <o...@wikimedia.org>
Gerrit-Reviewer: Faidon Liambotis <fai...@wikimedia.org>
Gerrit-Reviewer: Ori.livneh <o...@wikimedia.org>

_______________________________________________
MediaWiki-commits mailing list
MediaWiki-commits@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits

Reply via email to