mirror of
https://github.com/silverstripe/silverstripe-multiform
synced 2024-10-22 11:05:49 +02:00
MINOR echo out the amount of session records that were deleted on MultiFormPurgeTask
This commit is contained in:
parent
9da9a611a0
commit
58b7bb2210
@ -30,9 +30,11 @@ class MultiFormPurgeTask extends DailyTask {
|
||||
*/
|
||||
public function run() {
|
||||
$sessions = $this->getExpiredSessions();
|
||||
$delCount = 0;
|
||||
if($sessions) foreach($sessions as $session) {
|
||||
$session->delete();
|
||||
if($session->delete()) $delCount++;
|
||||
}
|
||||
echo $delCount . ' session records deleted that were older than ' . self::$session_expiry_days . ' days.';
|
||||
}
|
||||
|
||||
/**
|
||||
|
Loading…
Reference in New Issue
Block a user