diff options
author | Kim Alvefur <zash@zash.se> | 2015-12-05 22:46:50 +0100 |
---|---|---|
committer | Kim Alvefur <zash@zash.se> | 2015-12-05 22:46:50 +0100 |
commit | b2f0349c7e420ab78734ebcc74155fe79a7f6514 (patch) | |
tree | 5cf9b9b2b21a5a863a7fe6340e00cf45e7854da7 /plugins | |
parent | 6d8484bb7ba2a1320b190b1dfc0a0496167815ae (diff) | |
download | prosody-b2f0349c7e420ab78734ebcc74155fe79a7f6514.tar.gz prosody-b2f0349c7e420ab78734ebcc74155fe79a7f6514.zip |
mod_blocklist: Clear second level cache when user is deleted
Diffstat (limited to 'plugins')
-rw-r--r-- | plugins/mod_blocklist.lua | 1 |
1 files changed, 1 insertions, 0 deletions
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); |