Fix cache invalidation in shared roster

Doing srg_get_info for not existing group, then srg_create, will make
srg_add_user fail because it will get info that group doesn't exist from
cache.
pull/3913/head
Paweł Chmielowski 2 months ago
parent e4c20aa674
commit c99ff6059f
  1. 1
      src/mod_shared_roster.erl

@ -422,6 +422,7 @@ create_group(Host, Group, Opts) ->
end,
case use_cache(Mod, Host) of
true ->
ets_cache:delete(?GROUP_OPTS_CACHE, {Host, Group}, cache_nodes(Mod, Host)),
ets_cache:insert(?GROUP_OPTS_CACHE, {Host, Group}, Opts, cache_nodes(Mod, Host));
_ ->
ok

Loading…
Cancel
Save