mirror of
https://github.com/friendica/friendica
synced 2025-04-28 00:30:10 +00:00
Split the CXronjobs class into separate classes
This commit is contained in:
parent
977e4fe5d9
commit
b136c5f32b
11 changed files with 422 additions and 274 deletions
|
@ -58,16 +58,16 @@ class Cron
|
|||
Worker::add(PRIORITY_LOW, 'UpdateServerDirectories');
|
||||
|
||||
// Expire and remove user entries
|
||||
Worker::add(PRIORITY_MEDIUM, "CronJobs", "expire_and_remove_users");
|
||||
Worker::add(PRIORITY_MEDIUM, 'ExpireAndRemoveUsers');
|
||||
|
||||
// Call possible post update functions
|
||||
Worker::add(PRIORITY_LOW, "CronJobs", "post_update");
|
||||
Worker::add(PRIORITY_LOW, 'PostUpdate');
|
||||
|
||||
// Clear cache entries
|
||||
Worker::add(PRIORITY_LOW, "CronJobs", "clear_cache");
|
||||
Worker::add(PRIORITY_LOW, 'ClearCache');
|
||||
|
||||
// Repair entries in the database
|
||||
Worker::add(PRIORITY_LOW, "CronJobs", "repair_database");
|
||||
Worker::add(PRIORITY_LOW, 'RepairDatabase');
|
||||
|
||||
// once daily run birthday_updates and then expire in background
|
||||
$d1 = DI::config()->get('system', 'last_expire_day');
|
||||
|
@ -76,12 +76,12 @@ class Cron
|
|||
// Daily cron calls
|
||||
if ($d2 != intval($d1)) {
|
||||
|
||||
Worker::add(PRIORITY_LOW, "CronJobs", "update_contact_birthdays");
|
||||
Worker::add(PRIORITY_LOW, 'UpdateContactBirthdays');
|
||||
|
||||
Worker::add(PRIORITY_LOW, "CronJobs", "update_photo_albums");
|
||||
Worker::add(PRIORITY_LOW, 'UpdatePhotoAlbums');
|
||||
|
||||
// update nodeinfo data
|
||||
Worker::add(PRIORITY_LOW, "CronJobs", "nodeinfo");
|
||||
Worker::add(PRIORITY_LOW, 'NodeInfo');
|
||||
|
||||
Worker::add(PRIORITY_LOW, 'UpdateGServers');
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue