comparison gnv-artifacts/src/main/java/de/intevation/gnv/state/profile/verticalcrosssection/VerticalCrossSectionOutputState.java @ 653:987584605a60

Changed insufficient key to store results used for chart generation in cache (issue189). gnv-artifacts/trunk@745 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author Ingo Weinzierl <ingo.weinzierl@intevation.de>
date Mon, 08 Mar 2010 10:04:38 +0000
parents 62ea2a7b1067
children a6081d76fa1c
comparison
equal deleted inserted replaced
652:078ba6799bd2 653:987584605a60
170 170
171 171
172 @Override 172 @Override
173 protected Object getChartResult(String uuid, CallContext callContext) { 173 protected Object getChartResult(String uuid, CallContext callContext) {
174 log.debug("VerticalCrossSectionOutputState.getChartResult"); 174 log.debug("VerticalCrossSectionOutputState.getChartResult");
175 String key = uuid + super.getID(); 175 String key = getHash();
176 176
177 CacheFactory factory = CacheFactory.getInstance(); 177 CacheFactory factory = CacheFactory.getInstance();
178 if (factory.isInitialized()) { 178 if (factory.isInitialized()) {
179 log.info("Using a cachce."); 179 log.info("Using a cachce.");
180 Cache cache = factory.getCache(); 180 Cache cache = factory.getCache();

http://dive4elements.wald.intevation.org