Software /
code /
prosody
Diff
plugins/mod_blocklist.lua @ 7079:f094683ae6eb
mod_blocklist: Clear second level cache correctly on user deletion
author | Kim Alvefur <zash@zash.se> |
---|---|
date | Mon, 11 Jan 2016 15:35:51 +0100 |
parent | 6976:4688ff9d4f2b |
child | 7620:c27c9695d130 |
line wrap: on
line diff
--- a/plugins/mod_blocklist.lua Mon Jan 11 15:33:18 2016 +0100 +++ b/plugins/mod_blocklist.lua Mon Jan 11 15:35:51 2016 +0100 @@ -221,7 +221,7 @@ -- 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);