summaryrefslogtreecommitdiff
path: root/cgit
diff options
context:
space:
mode:
authorJonas Smedegaard <dr@jones.dk>2016-04-29 19:15:11 +0200
committerJonas Smedegaard <dr@jones.dk>2016-04-29 19:15:11 +0200
commit4005accf5a1d420bb788141235e49683e9684fc1 (patch)
treee17b727a9fa2c14beeef04332842832f51483f6c /cgit
parentcb6e119823be3a105343dd357ce67449108a925e (diff)
Include hostname in cache key: Reuse cache across varying protocol, but support multiple independent vhosts.
Diffstat (limited to 'cgit')
-rw-r--r--cgit/uwsgi/apps-available/local-git.ini4
1 files changed, 2 insertions, 2 deletions
diff --git a/cgit/uwsgi/apps-available/local-git.ini b/cgit/uwsgi/apps-available/local-git.ini
index 0b9c27c..061c46f 100644
--- a/cgit/uwsgi/apps-available/local-git.ini
+++ b/cgit/uwsgi/apps-available/local-git.ini
@@ -17,5 +17,5 @@ cgi = /usr/lib/cgit/cgit.cgi
; cache indexes
cache2 = name=indexes,items=100
-route = /$ cache:key=${REQUEST_URI},name=indexes
-route = /$ cachestore:key=${REQUEST_URI},name=indexes
+route = /$ cache:key=${$HTTP_HOST}:${REQUEST_URI},name=indexes
+route = /$ cachestore:key=${$HTTP_HOST}:${REQUEST_URI},name=indexes