# HG changeset patch # User Kim Alvefur # Date 1449352010 -3600 # Node ID d90a4d6a0e2c8ad3cc12c21b2e9d7e5aac38dc46 # Parent e3be91ccca05abc5051b8f1c481719dda4bfb5cb mod_blocklist: Clear second level cache when user is deleted diff -r e3be91ccca05 -r d90a4d6a0e2c plugins/mod_blocklist.lua --- a/plugins/mod_blocklist.lua Thu Dec 03 16:12:44 2015 +0000 +++ b/plugins/mod_blocklist.lua Sat Dec 05 22:46:50 2015 +0100 @@ -186,6 +186,7 @@ -- 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);