changeset 726:8d475151b2c1

Use a better key - hash served by getHash() from StateBase - to put chart data into cache (issue201). gnv-artifacts/trunk@759 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author Ingo Weinzierl <ingo.weinzierl@intevation.de>
date Wed, 10 Mar 2010 15:04:30 +0000
parents dde7f51dbe1e
children 22dc921cd8b1
files gnv-artifacts/ChangeLog gnv-artifacts/src/main/java/de/intevation/gnv/state/profile/horizontalcrosssection/HorizontalCrossSectionMeshOutputState.java
diffstat 2 files changed, 9 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/gnv-artifacts/ChangeLog	Wed Mar 10 13:27:14 2010 +0000
+++ b/gnv-artifacts/ChangeLog	Wed Mar 10 15:04:30 2010 +0000
@@ -1,3 +1,11 @@
+2010-03-10  Ingo Weinzierl <ingo.weinzierl@intevation.de>
+
+	  Issue201
+
+	* src/main/java/de/intevation/gnv/state/profile/horizontalcrosssection/HorizontalCrossSectionMeshOutputState.java:
+	  Use a better key - hash served by getHash() from StateBase - to put
+	  chart results into cache.
+
 2010-03-10  Ingo Weinzierl <ingo.weinzierl@intevation.de>
 
 	* doc/conf/products/timeseries/conf_timeseriespoint.xml: Use MinMaxDateState
--- a/gnv-artifacts/src/main/java/de/intevation/gnv/state/profile/horizontalcrosssection/HorizontalCrossSectionMeshOutputState.java	Wed Mar 10 13:27:14 2010 +0000
+++ b/gnv-artifacts/src/main/java/de/intevation/gnv/state/profile/horizontalcrosssection/HorizontalCrossSectionMeshOutputState.java	Wed Mar 10 15:04:30 2010 +0000
@@ -359,7 +359,7 @@
     throws StateException
     {
         CacheFactory cf  = CacheFactory.getInstance();
-        String       key = uuid + super.getID();
+        String       key = getHash();
 
         if (cf.isInitialized()) {
             net.sf.ehcache.Element value = cf.getCache().get(key);

http://dive4elements.wald.intevation.org