From 0368fd8ee5b0dd137e44b2000a7fb7bfe24f7985 Mon Sep 17 00:00:00 2001 From: Kim Alvefur Date: Mon, 11 Jan 2016 15:35:51 +0100 Subject: mod_blocklist: Clear second level cache correctly on user deletion --- plugins/mod_blocklist.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'plugins/mod_blocklist.lua') diff --git a/plugins/mod_blocklist.lua b/plugins/mod_blocklist.lua index e2ed626b..8efbfd96 100644 --- a/plugins/mod_blocklist.lua +++ b/plugins/mod_blocklist.lua @@ -221,7 +221,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); + cache2:set(event.username, nil); cache[event.username] = nil; end end); -- cgit v1.2.3