Commit 218fa534 authored by Gaston Dombiak's avatar Gaston Dombiak Committed by gato

Changed cache size.

git-svn-id: http://svn.igniterealtime.org/svn/repos/wildfire/trunk@3705 b35dd754-fafc-0310-a699-88a17e54d16e
parent e0024422
......@@ -77,7 +77,7 @@ public class FaviconServlet extends HttpServlet {
e.printStackTrace();
}
// Initialize caches.
missesCache = CacheManager.initializeCache("Favicon misses", "favicon", 512 * 1024);
missesCache = CacheManager.initializeCache("Favicon misses", "favicon", 128 * 1024);
}
/**
......
......@@ -49,13 +49,11 @@ public class GroupManager {
private GroupManager() {
// Initialize caches.
String cacheName = "Group";
CacheManager.initializeCache(cacheName, "group", 128 * 1024);
groupCache = CacheManager.getCache(cacheName);
groupCache = CacheManager.initializeCache("Group", "group", 512 * 1024);
// A cache for all groups and groups related to a particular user
cacheName = "User Group Cache";
CacheManager.initializeCache(cacheName, "userGroup", 128 * 1024, 1000 * 60 * 60 * 3);
String cacheName = "User Group Cache";
CacheManager.initializeCache(cacheName, "userGroup", 512 * 1024, 1000 * 60 * 60 * 3);
userGroupCache = CacheManager.getCache(cacheName);
// Load a group provider.
......
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