From 58b7bb2210a51e60a09f0573aa4a4be05a5bfa58 Mon Sep 17 00:00:00 2001 From: Sean Harvey Date: Wed, 2 Jul 2008 00:54:22 +0000 Subject: [PATCH] MINOR echo out the amount of session records that were deleted on MultiFormPurgeTask --- code/MultiFormPurgeTask.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/code/MultiFormPurgeTask.php b/code/MultiFormPurgeTask.php index c406c97..5fecd7f 100644 --- a/code/MultiFormPurgeTask.php +++ b/code/MultiFormPurgeTask.php @@ -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.'; } /**