projects
/
prosody.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
mod_blocklist: Clear second level cache correctly on user deletion
[prosody.git]
/
plugins
/
mod_blocklist.lua
diff --git
a/plugins/mod_blocklist.lua
b/plugins/mod_blocklist.lua
index e2ed626b36ae5a5425f4baf07a1b95565a1565af..8efbfd965295ab0ad250692831178e6112b1a9e2 100644
(file)
--- 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);
+ cache
2
:set(event.username, nil);
cache[event.username] = nil;
end
end);