Move the repair functionality to the daily cron

This commit is contained in:
Michael 2020-10-15 07:34:21 +00:00
parent 84b6c18b94
commit 9704a9bf25

View file

@ -90,9 +90,6 @@ class Cron
// Clear cache entries
Worker::add(PRIORITY_LOW, 'ClearCache');
// Repair entries in the database
Worker::add(PRIORITY_LOW, 'RepairDatabase');
DI::config()->set('system', 'last_cron_hourly', time());
}
@ -108,6 +105,9 @@ class Cron
Worker::add(PRIORITY_LOW, 'UpdateGServers');
// Repair entries in the database
Worker::add(PRIORITY_LOW, 'RepairDatabase');
Worker::add(PRIORITY_LOW, 'Expire');
Worker::add(PRIORITY_LOW, 'ExpirePosts');