You are here

function httpbl_cron in http:BL 5

Same name and namespace in other branches
  1. 8 httpbl.module \httpbl_cron()
  2. 6.2 httpbl.module \httpbl_cron()
  3. 6 httpbl.module \httpbl_cron()
  4. 7 httpbl.module \httpbl_cron()

Implementation of hook_cron().

Cleans up cache table.

File

./httpbl.module, line 324
Implementation of http:BL for Drupal. It provides IP-based blacklisting through http:BL and allows linking to a honeypot.

Code

function httpbl_cron() {
  if (variable_get('httpbl_dbcache', TRUE)) {
    db_query("DELETE FROM {httpbl} WHERE expire <= %d", time());
  }
}