From 9db912d996ff38f0eba2d432ff884eafc5931d54 Mon Sep 17 00:00:00 2001 From: Shish Date: Sun, 5 Feb 2012 06:59:55 +0000 Subject: [PATCH] now that the cache key has changed, the invalidation needs updating... --- contrib/ipban/main.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/contrib/ipban/main.php b/contrib/ipban/main.php index 06e86b1d..bd9a11d0 100644 --- a/contrib/ipban/main.php +++ b/contrib/ipban/main.php @@ -92,7 +92,7 @@ class IPBan extends SimpleExtension { public function onRemoveIPBan($event) { global $database; $database->Execute("DELETE FROM bans WHERE id = :id", array("id"=>$event->id)); - $database->cache->delete("ip_bans"); + $database->cache->delete("ip_bans_sorted"); } // installer {{{ @@ -261,7 +261,7 @@ class IPBan extends SimpleExtension { global $database; $sql = "INSERT INTO bans (ip, reason, end_timestamp, banner_id) VALUES (:ip, :reason, :end, :admin_id)"; $database->Execute($sql, array("ip"=>$ip, "reason"=>$reason, "end"=>strtotime($end), "admin_id"=>$user->id)); - $database->cache->delete("ip_bans"); + $database->cache->delete("ip_bans_sorted"); log_info("ipban", "'$user->name' has banned '$ip' because '$reason' until '$end'"); } // }}}