spamBee: Cache cleanup on plugin save.
This commit is contained in:
parent
52fbef7487
commit
8fbde332f2
|
@ -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).
|
||||
|
|
|
@ -158,4 +158,11 @@ Bayes:%Bayes%'
|
|||
return $this->cache_file;
|
||||
}
|
||||
|
||||
function cleanup() {
|
||||
$cacheFile = $this->getCacheFilename();
|
||||
if (file_exists($cacheFile)) {
|
||||
unlink($cacheFile);
|
||||
}
|
||||
}
|
||||
|
||||
}
|
Loading…
Reference in a new issue