25
1
mirror of https://github.com/processone/ejabberd.git synced 2024-12-20 17:27:00 +01:00

Really delete cache on set_data()

Fixes #1991
This commit is contained in:
Evgeniy Khramtsov 2017-09-07 19:27:48 +03:00
parent 803c31f760
commit 4ecd8a0780

View File

@ -133,7 +133,7 @@ set_data(LUser, LServer, Data) ->
Mod = gen_mod:db_mod(LServer, ?MODULE), Mod = gen_mod:db_mod(LServer, ?MODULE),
case Mod:set_data(LUser, LServer, Data) of case Mod:set_data(LUser, LServer, Data) of
ok -> ok ->
delete_cache(Mod, LServer, LServer, Data); delete_cache(Mod, LUser, LServer, Data);
{error, _} = Err -> {error, _} = Err ->
Err Err
end. end.