From: Evgeniy Khramtsov Date: Thu, 24 Nov 2016 15:40:20 +0000 (+0300) Subject: Don't forget to erase cache on user removal X-Git-Tag: 16.12-beta1~7 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=0f11b1be364e43189e06eeb577750e7d1b0e9fef;p=ejabberd Don't forget to erase cache on user removal --- diff --git a/src/mod_mam.erl b/src/mod_mam.erl index 0433dee79..edb0d1485 100644 --- a/src/mod_mam.erl +++ b/src/mod_mam.erl @@ -176,6 +176,7 @@ remove_user(User, Server) -> LServer = jid:nameprep(Server), Mod = gen_mod:db_mod(LServer, ?MODULE), Mod:remove_user(LUser, LServer), + cache_tab:dirty_delete(archive_prefs, {LUser, LServer}, fun() -> ok end), ok. -spec remove_room(binary(), binary(), binary()) -> ok.