Commit 2da15e25 authored by Alex Wenckus's avatar Alex Wenckus Committed by alex

Method would always return null on new cache creation.

git-svn-id: http://svn.igniterealtime.org/svn/repos/wildfire/trunk@3633 b35dd754-fafc-0310-a699-88a17e54d16e
parent 032d11cd
...@@ -73,7 +73,8 @@ public class CacheManager { ...@@ -73,7 +73,8 @@ public class CacheManager {
size = JiveGlobals.getIntProperty("cache." + name + ".size", size); size = JiveGlobals.getIntProperty("cache." + name + ".size", size);
expirationTime = (long) JiveGlobals.getIntProperty( expirationTime = (long) JiveGlobals.getIntProperty(
"cache." + propertiesName + ".expirationTime", (int) expirationTime); "cache." + propertiesName + ".expirationTime", (int) expirationTime);
caches.put(name, new Cache(name, size, expirationTime)); cache = new Cache(name, size, expirationTime);
caches.put(name, cache);
} }
return cache; return cache;
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment