From 0f4587adf8ac733338b4ca8b5efd20c33deba7a6 Mon Sep 17 00:00:00 2001 From: m Date: Sun, 15 Apr 2018 23:30:40 +0200 Subject: [PATCH] less often demo cleaning --- app/classes/Framadate/Services/PurgeService.php | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/app/classes/Framadate/Services/PurgeService.php b/app/classes/Framadate/Services/PurgeService.php index 9c9b191..50c15df 100644 --- a/app/classes/Framadate/Services/PurgeService.php +++ b/app/classes/Framadate/Services/PurgeService.php @@ -25,7 +25,10 @@ class PurgeService { public function repeatedCleanings() { $this->purgeOldPolls(); - $this->cleanDemoPoll(); + + if (0 === time() % 10) { + $this->cleanDemoPoll(); + } } /**