]> git.mxchange.org Git - friendica.git/commitdiff
Move the repair functionality to the daily cron
authorMichael <heluecht@pirati.ca>
Thu, 15 Oct 2020 07:34:21 +0000 (07:34 +0000)
committerMichael <heluecht@pirati.ca>
Thu, 15 Oct 2020 07:34:21 +0000 (07:34 +0000)
src/Worker/Cron.php

index 5e2a6a0695bb9b929fa8fe49a60234e34a956c97..90042e30f6631d039c7cdb72de6e8bd4f258cc74 100644 (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');