mirror of
https://github.com/processone/ejabberd.git
synced 2024-12-20 17:27:00 +01:00
When updating group in cache, first delete so insert succeeds (#3296)
This commit is contained in:
parent
7efc208b9e
commit
f2e81ed2a0
@ -470,6 +470,7 @@ set_group_opts(Host, Group, Opts) ->
|
||||
Mod = gen_mod:db_mod(Host, ?MODULE),
|
||||
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)),
|
||||
ets_cache:clear(?SPECIAL_GROUPS_CACHE, cache_nodes(Mod, Host));
|
||||
_ ->
|
||||
|
Loading…
Reference in New Issue
Block a user