Fixing cache problem in gperm_handler->getGroupIds