aboutsummaryrefslogtreecommitdiffstats
path: root/plugins/mod_blocklist.lua
diff options
context:
space:
mode:
authorKim Alvefur <zash@zash.se>2016-01-11 15:35:51 +0100
committerKim Alvefur <zash@zash.se>2016-01-11 15:35:51 +0100
commit3c9b6a4a8d98570eafdfcf388fd1f51fe97a5425 (patch)
tree2bffb453b6d82f2b3818cbfee71f535915d525ab /plugins/mod_blocklist.lua
parent0f3612a00ab41115dc05c790f4ac0f26331a9daf (diff)
downloadprosody-3c9b6a4a8d98570eafdfcf388fd1f51fe97a5425.tar.gz
prosody-3c9b6a4a8d98570eafdfcf388fd1f51fe97a5425.zip
mod_blocklist: Clear second level cache correctly on user deletion
Diffstat (limited to 'plugins/mod_blocklist.lua')
-rw-r--r--plugins/mod_blocklist.lua2
1 files changed, 1 insertions, 1 deletions
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);