spamBee: Cache cleanup on plugin save.

This commit is contained in:
Grischa Brockhaus 2012-08-16 23:38:47 +02:00
parent 52fbef7487
commit 8fbde332f2
2 changed files with 7 additions and 6 deletions

View file

@ -356,12 +356,6 @@ class serendipity_event_spamblock_bee extends serendipity_event
}
}
function install() {
}
function cleanup() {
}
/**
* Check if Honey Pot or Captcha have been filled correctly (or if any
* other indications for spam can be found).

View file

@ -158,4 +158,11 @@ Bayes:%Bayes%'
return $this->cache_file;
}
function cleanup() {
$cacheFile = $this->getCacheFilename();
if (file_exists($cacheFile)) {
unlink($cacheFile);
}
}
}