mod_blocklist: Clear second level cache correctly on user deletion

vault/0.11
Kim Alvefur 11 years ago
parent b8729825ee
commit 0368fd8ee5
  1. 2
      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);

Loading…
Cancel
Save