# HG changeset patch # User Felix Wolfsteller # Date 1339102429 0 # Node ID bb576facbe50bb97f1987cbc013878ccb42126e3 # Parent acd89b7970dda956c0807b2c51b12a893fd747bb Use cache. flys-artifacts/trunk@4627 c6561f87-3c4e-4783-a992-168aeb5c3f6f diff -r acd89b7970dd -r bb576facbe50 flys-artifacts/ChangeLog --- a/flys-artifacts/ChangeLog Thu Jun 07 20:48:13 2012 +0000 +++ b/flys-artifacts/ChangeLog Thu Jun 07 20:53:49 2012 +0000 @@ -1,3 +1,8 @@ +2012-06-07 Felix Wolfsteller + + * src/main/java/de/intevation/flys/artifacts/states/GaugeDischargeState.java: + Enable caching. + 2012-06-07 Felix Wolfsteller * doc/conf/meta-data.xml: Simplified choice of gauges for discharge c. diff -r acd89b7970dd -r bb576facbe50 flys-artifacts/src/main/java/de/intevation/flys/artifacts/states/GaugeDischargeState.java --- a/flys-artifacts/src/main/java/de/intevation/flys/artifacts/states/GaugeDischargeState.java Thu Jun 07 20:48:13 2012 +0000 +++ b/flys-artifacts/src/main/java/de/intevation/flys/artifacts/states/GaugeDischargeState.java Thu Jun 07 20:53:49 2012 +0000 @@ -87,8 +87,6 @@ ) { logger.debug("GaugeDischargeState.computeInit()"); - // TODO caching, / CalculationResultUsage - GaugeDischargeFacet facet = new GaugeDischargeFacet( 0, DISCHARGE_CURVE, @@ -117,12 +115,13 @@ CalculationResult res; - /*if (old instanceof CalculationResult) { + + if (old instanceof CalculationResult) { res = (CalculationResult) old; } - else {*/ + else { res = dischargeArtifact.getDischargeCurveData(); - //} + } WQKms[] wqkms = (WQKms[]) res.getData();