← Back to team overview

dhis2-devs team mailing list archive

[Branch ~dhis2-documenters/dhis2/dhis2-docbook-docs] Rev 640: Another simplification of caching

 

------------------------------------------------------------
revno: 640
committer: Lars Helge Øverland <larshelge@xxxxxxxxx>
branch nick: dhis2-docbook-docs
timestamp: Tue 2012-12-18 15:28:29 +0100
message:
  Another simplification of caching
modified:
  src/docbkx/en/dhis2_implementation_guide_installation.xml


--
lp:~dhis2-documenters/dhis2/dhis2-docbook-docs
https://code.launchpad.net/~dhis2-documenters/dhis2/dhis2-docbook-docs

Your team DHIS 2 developers is subscribed to branch lp:~dhis2-documenters/dhis2/dhis2-docbook-docs.
To unsubscribe from this branch go to https://code.launchpad.net/~dhis2-documenters/dhis2/dhis2-docbook-docs/+edit-subscription
=== modified file 'src/docbkx/en/dhis2_implementation_guide_installation.xml'
--- src/docbkx/en/dhis2_implementation_guide_installation.xml	2012-12-18 13:01:15 +0000
+++ src/docbkx/en/dhis2_implementation_guide_installation.xml	2012-12-18 14:28:29 +0000
@@ -248,19 +248,7 @@
       expires  7d;
     } 
 
-    # Cache and proxy pass analysis related requests to servlet container
-
-    location ~ (api/(chart*|map*|reports|reportTables)|generateDataSetReport.action|exportTable.action) {
-        proxy_pass          http://localhost:8080;
-        proxy_redirect      off;
-        proxy_set_header    Host               $host;
-        proxy_set_header    X-Real-IP          $remote_addr;
-        proxy_set_header    X-Forwarded-For    $proxy_add_x_forwarded_for;
-        proxy_set_header    X-Forwarded-Proto  https;
-        proxy_cache         dhis;
-    }
-
-    # Proxy pass remaining requests to servlet container
+    # Proxy pass to servlet container and potentially cache response
 
     location / {
       proxy_pass        http://localhost:8080/;
@@ -269,6 +257,7 @@
       proxy_set_header  X-Real-IP          $remote_addr;
       proxy_set_header  X-Forwarded-For    $proxy_add_x_forwarded_for;
       proxy_set_header  X-Forwarded-Proto  https;
+      proxy_cache       dhis;
     }
   }]]>
 }