Because there is no point in letting the table fill up with records that are excluded from the ip ban queries.

--- Base (BASE)
+++ Locally Modified (Based On LOCAL)
@@ -589,3 +589,12 @@
     'sbl-xbl.spamhaus.org'
   )));
 }
+
+/**
+ * Implementation of hook_cron
+ */
+function troll_cron() {
+
+  // Clean up expired IP addresses from IP ban table
+  db_query('DELETE FROM {troll_ip_ban} WHERE expires > 1000000000 AND expires < %d', time());
+}

Comments

bibo’s picture

Issue summary: View changes

I wonder if this should also work with D7?

mgifford’s picture

Status: Needs review » Active

Would be a useful thing to evaluate. I don't see why it wouldn't.

mgifford’s picture

Version: 6.x-1.x-dev » 7.x-1.x-dev