From 5d0c9d3fa3c8e3ded82e588291fadd206c1ea589 Mon Sep 17 00:00:00 2001
From: Shish <shish@shishnet.org>
Date: Thu, 11 Feb 2010 11:12:27 +0000
Subject: [PATCH] ipban: delete the cache after changing the data

---
 contrib/ipban/main.php | 1 +
 1 file changed, 1 insertion(+)

diff --git a/contrib/ipban/main.php b/contrib/ipban/main.php
index 561d225d..1da85406 100644
--- a/contrib/ipban/main.php
+++ b/contrib/ipban/main.php
@@ -90,6 +90,7 @@ class IPBan implements Extension {
 
 		if($event instanceof RemoveIPBanEvent) {
 			$database->Execute("DELETE FROM bans WHERE id = ?", array($event->id));
+			$database->cache->delete("ip_bans");
 		}
 	}
 // }}}