less often demo cleaning
This commit is contained in:
parent
081fdae5f5
commit
0f4587adf8
@ -25,8 +25,11 @@ class PurgeService {
|
|||||||
|
|
||||||
public function repeatedCleanings() {
|
public function repeatedCleanings() {
|
||||||
$this->purgeOldPolls();
|
$this->purgeOldPolls();
|
||||||
|
|
||||||
|
if (0 === time() % 10) {
|
||||||
$this->cleanDemoPoll();
|
$this->cleanDemoPoll();
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* This methode purges all old polls (the ones with end_date in past).
|
* This methode purges all old polls (the ones with end_date in past).
|
||||||
|
Loading…
Reference in New Issue
Block a user