Commit 9bf92b47 authored by Matt Tucker's avatar Matt Tucker Committed by matt

Cache logic fix for shared group changes.

git-svn-id: http://svn.igniterealtime.org/svn/repos/wildfire/trunk@5258 b35dd754-fafc-0310-a699-88a17e54d16e
parent 839ce8f1
......@@ -81,8 +81,17 @@ public class GroupManager {
}
public void groupModified(Group group, Map params) {
/* Ignore */
// TODO: expire cache when a property operation on shared groups.
String type = (String)params.get("type");
// If shared group settings changed, expire the cache.
if (type != null && (type.equals("propertyModified") ||
type.equals("propertyDeleted") || type.equals("propertyAdded")))
{
if (params.get("propertyKey") != null &&
params.get("propertyKey").equals("sharedRoster.showInRoster"))
{
groupMetaCache.clear();
}
}
}
public void memberAdded(Group group, Map params) {
......
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