dhis2-devs team mailing list archive
-
dhis2-devs team
-
Mailing list archive
-
Message #20154
[Branch ~dhis2-devs-core/dhis2/trunk] Rev 9081: Caching of report table dynamic data
------------------------------------------------------------
revno: 9081
committer: Lars Helge Øverland <larshelge@xxxxxxxxx>
branch nick: dhis2
timestamp: Mon 2012-11-19 20:15:06 +0100
message:
Caching of report table dynamic data
modified:
dhis-2/dhis-web/dhis-web-api/src/main/java/org/hisp/dhis/api/controller/ReportTableController.java
--
lp:dhis2
https://code.launchpad.net/~dhis2-devs-core/dhis2/trunk
Your team DHIS 2 developers is subscribed to branch lp:dhis2.
To unsubscribe from this branch go to https://code.launchpad.net/~dhis2-devs-core/dhis2/trunk/+edit-subscription
=== modified file 'dhis-2/dhis-web/dhis-web-api/src/main/java/org/hisp/dhis/api/controller/ReportTableController.java'
--- dhis-2/dhis-web/dhis-web-api/src/main/java/org/hisp/dhis/api/controller/ReportTableController.java 2012-08-03 08:50:38 +0000
+++ dhis-2/dhis-web/dhis-web-api/src/main/java/org/hisp/dhis/api/controller/ReportTableController.java 2012-11-19 19:15:06 +0000
@@ -115,7 +115,8 @@
orgUnits, crossTab, orgUnitIsParent, minimal, relatives, response );
model.addAttribute( "model", grid );
- model.addAttribute( "viewClass", "detailed" );
+ model.addAttribute( "viewClass", "detailed" );
+ contextUtils.configureResponse( response, ContextUtils.CONTENT_TYPE_PDF, CacheStrategy.RESPECT_SYSTEM_SETTING );
return grid != null ? "reportTableData" : null;
}