← Back to team overview

dhis2-devs team mailing list archive

[Branch ~dhis2-devs-core/dhis2/trunk] Rev 16513: PeriodCache, minor performance improvement

 

------------------------------------------------------------
revno: 16513
committer: Lars Helge Overland <larshelge@xxxxxxxxx>
branch nick: dhis2
timestamp: Tue 2014-08-26 09:49:22 +0200
message:
  PeriodCache, minor performance improvement
modified:
  dhis-2/dhis-support/dhis-support-system/src/main/java/org/hisp/dhis/system/cache/PeriodCache.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-support/dhis-support-system/src/main/java/org/hisp/dhis/system/cache/PeriodCache.java'
--- dhis-2/dhis-support/dhis-support-system/src/main/java/org/hisp/dhis/system/cache/PeriodCache.java	2014-08-24 21:04:36 +0000
+++ dhis-2/dhis-support/dhis-support-system/src/main/java/org/hisp/dhis/system/cache/PeriodCache.java	2014-08-26 07:49:22 +0000
@@ -60,7 +60,7 @@
     {
         try
         {
-            String key = calendar.name() + periodType.getName() + startDate.toString();
+            String key = calendar.name() + periodType.getName() + String.valueOf( startDate.getTime() );
             
             return periodCache.get( key, new Callable<String>() 
             {