Changeset

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
parents 7078:ec17115e3721
children 7080:6946c3d5645f
files plugins/mod_blocklist.lua
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
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);