From 224a307f65dd679e6321eb2f0bb966b6311a408a Mon Sep 17 00:00:00 2001 From: Kim Alvefur Date: Sat, 5 Dec 2015 22:46:50 +0100 Subject: mod_blocklist: Clear second level cache when user is deleted --- plugins/mod_blocklist.lua | 1 + 1 file changed, 1 insertion(+) diff --git a/plugins/mod_blocklist.lua b/plugins/mod_blocklist.lua index 65fc70b7..e37bc4df 100644 --- a/plugins/mod_blocklist.lua +++ b/plugins/mod_blocklist.lua @@ -186,6 +186,7 @@ module:hook("iq-set/self/urn:xmpp:blocking:unblock", edit_blocklist); -- Cache invalidation, solved! module:hook_global("user-deleted", function (event) if event.host == module.host then + cache:set(event.username, nil); cache[event.username] = nil; end end); -- cgit v1.2.3