Improved control about the contact/server updates

This commit is contained in:
Michael 2023-11-27 19:00:12 +00:00
parent 3c35dbcb5f
commit 077c9ff0c9
9 changed files with 50 additions and 19 deletions

View file

@ -76,7 +76,9 @@ class Cron
Worker::add(Worker::PRIORITY_LOW, 'UpdateGServers');
// run the process to update server directories in the background
Worker::add(Worker::PRIORITY_LOW, 'UpdateServerDirectories');
if (DI::config()->get('system', 'poco_discovery')) {
Worker::add(Worker::PRIORITY_LOW, 'UpdateServerDirectories');
}
// Expire and remove user entries
Worker::add(Worker::PRIORITY_MEDIUM, 'ExpireAndRemoveUsers');