Commit e6a063bf authored by Gaston Dombiak's avatar Gaston Dombiak Committed by gaston

Warms-up cache at start-up.


git-svn-id: http://svn.igniterealtime.org/svn/repos/messenger/trunk@182 b35dd754-fafc-0310-a699-88a17e54d16e
parent 5ad63174
......@@ -155,6 +155,8 @@ public class MultiUserChatServerImpl extends BasicModule implements MultiUserCha
private void initializeCaches() {
// create cache - no size limit and expires after one hour of being idle
persistentRoomSurrogateCache = new Cache("Room Surrogates", -1, JiveConstants.HOUR);
// warm-up cache now to avoid a delay responding the first disco request
populateRoomSurrogateCache();
}
/**
......
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