Commit 6f3f439f authored by Gaston Dombiak's avatar Gaston Dombiak Committed by gato

Renamed and fixed cache properties.

git-svn-id: http://svn.igniterealtime.org/svn/repos/openfire/trunk@10214 b35dd754-fafc-0310-a699-88a17e54d16e
parent 55d14b3a
...@@ -283,7 +283,7 @@ public class ClearspaceManager extends BasicModule implements ExternalComponentM ...@@ -283,7 +283,7 @@ public class ClearspaceManager extends BasicModule implements ExternalComponentM
} }
// Init nonce cache // Init nonce cache
nonceCache = CacheFactory.createCache("cache.clearspace.nonce"); nonceCache = CacheFactory.createCache("Clearspace SSO Nonce");
// Init nonce generator // Init nonce generator
nonceGenerator = new Random(); nonceGenerator = new Random();
} }
......
...@@ -108,6 +108,7 @@ public class CacheFactory { ...@@ -108,6 +108,7 @@ public class CacheFactory {
cacheNames.put("Entity Capabilities", "entityCapabilities"); cacheNames.put("Entity Capabilities", "entityCapabilities");
cacheNames.put("Entity Capabilities Users", "entityCapabilitiesUsers"); cacheNames.put("Entity Capabilities Users", "entityCapabilitiesUsers");
cacheNames.put("Entity Capabilities Pending Hashes", "entityCapabilitiesPendingHashes"); cacheNames.put("Entity Capabilities Pending Hashes", "entityCapabilitiesPendingHashes");
cacheNames.put("Clearspace SSO Nonce", "clearspaceSSONonce");
cacheProps.put("cache.fileTransfer.size", 128 * 1024l); cacheProps.put("cache.fileTransfer.size", 128 * 1024l);
cacheProps.put("cache.fileTransfer.maxLifetime", 1000 * 60 * 10l); cacheProps.put("cache.fileTransfer.maxLifetime", 1000 * 60 * 10l);
...@@ -177,7 +178,8 @@ public class CacheFactory { ...@@ -177,7 +178,8 @@ public class CacheFactory {
cacheProps.put("cache.entityCapabilitiesPendingHashes.maxLifetime", JiveConstants.DAY * 2); cacheProps.put("cache.entityCapabilitiesPendingHashes.maxLifetime", JiveConstants.DAY * 2);
cacheProps.put("cache.pluginCacheInfo.size", -1l); cacheProps.put("cache.pluginCacheInfo.size", -1l);
cacheProps.put("cache.pluginCacheInfo.maxLifetime", -1l); cacheProps.put("cache.pluginCacheInfo.maxLifetime", -1l);
cacheProps.put("cache.clearspace.nonce", JiveConstants.MINUTE * 2); cacheProps.put("cache.clearspaceSSONonce.size", -1l);
cacheProps.put("cache.clearspaceSSONonce.maxLifetime", JiveConstants.MINUTE * 2);
} }
private CacheFactory() { private CacheFactory() {
......
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